Giter Club home page Giter Club logo

nlog's Introduction

nLog


Natural Way Of Blogging. By writing politcally incorrect things uwu


Built using ( MERN STACK )

MongoDB Express.js React NodeJS React Router TailwindCSS JWT

Try Now [ Deployment is online ( hopefully ) ]

Try nLog now

Screen-shots ( Aesthetic and Mild UI )

Design File: Checkout at Figma Screenshot of home page of nLog website Screenshot of home page of nLog website on mobile screen

Installation

  1. Make sure you have Node.js v16 or above
  2. Make sure you have npm (node package manager)
git clone https://github.com/SomnathDas/nLog.git
cd nLog
cd client
npm install
cd ..
cd server
npm install
cd ..

Configuration

Server

cd server
touch .env
nano .env
DB_URL=
ACCESS_TOKEN_SECRET=
REFRESH_TOKEN_SECRET=
PORT=3000
ALLOWED_ORIGIN=http://localhost:3000
NODE_ENV=production

You can generate ACCESS_TOKEN_SECRET, REFRESH_TOKEN_SECRET using https://nodejs.org/api/crypto.html

Client

cd client
touch .env
nano .env
REACT_APP_BASE_URL=http://localhost:3000

Running the application

Development

**Run individually client and server on different ports ( Make sure to configure ports in above Configuration (.env files)

npm run start

Production

**Build client and run both client and server on same ports (This method can vary depending on how you choose to deploy )

npm run build

How to deploy the app on VPS (Virtual Private Server) ?

**I recommend the following tutorials https://www.youtube.com/watch?v=Nxw2j1-srVc https://github.com/safak/youtube/tree/mern-deployment

Special Thanks

  1. Favicon: Photo by Evie S. on Unsplash

  2. Login & Sign-Up Screen: Photo by Sime Basioli on Unsplash

Author

Somnath Das

nlog's People

Contributors

somnathdas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

jeyadev14

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.