/authJWT

A simple MERN stack app to demonstrate signup and login using JWT.

Primary LanguageJavaScriptMIT LicenseMIT

A simple MERN stack app to demonstrate signup and login using JWT.

How to use?

  1. clone / fork -> clone the replository.
  2. Start mongodb server using mongod.
  3. cd into the project's root directory and then run npm install.
  4. Run npm run dev to run in development mode and open http://localhost:3000 to view it in your browser.

Please note that nodejs along with npm and mongodb should be downloaded and properly installed in your computer for it to work.

Available Scripts

In the project directory, you can run:

npm run dev

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm run clean

Deletes the node_modules directory and package-lock.json.

npm run server

Starts only the server at http://localhost:5000

npm install

Install all the required packages / dependencies to run the app.