/generator-jwt-webapp

A Yeoman generator to bootstrap a NextJs/React frontend with a JWT authenticated Node/Express/MongoDB backend

Primary LanguageJavaScriptMIT LicenseMIT

generator-jwt-webapp NPM version

React / NextJS frontend using JWT token authentication via Mongodb backed Node instance.

Installation

First, install Yeoman and generator-jwt-webapp using npm (we assume you have pre-installed node.js).

npm install -g yo
npm install -g generator-jwt-webapp
  • Also, make sure to have MongoDB installed and run mongod or create project using a remote DB Uri.

Next, create root folder where project will live and navigate to it:

  • myDirectory can be anything
mkdir myDirectory && cd myDirectory

Finally, generate your new project:

yo jwt-webapp

Follow Instructions...

Running the Webapp

In one terminal tab:

$ cd api
$ npm run start

In another terminal tab:

$ cd client
$ npm run dev

Open browser of choice and launch

localhost:3000

Getting To Know Yeoman

License

Apache-2.0 © Mike Schmerbeck