1.0.1 • Published 4 years ago

jwtauth-boilerplate v1.0.1

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

Authentication Boilerplate

apiBadge authBadge

NodeJS, Graphql, JWT, React Auth Boilerplate

Usage

Use this application to bootstrap a fully functional NodeJS/React application that uses JWT for authentication and a Graphql API

Installation

Required NodeJS MongoDB

npm i jwtauth-boilerplate

Create a nodemon.js file to store the following enviroment variables :

"env":{
    "MONGO_USER":"your-mongo-user-name",
    "MONGO_PASSWORD":"your-mongo-password",
    "MONGO_DB":"your-database-name"
}

After setting up

npm install && npm start
cd frontend && npm install && npm start

Navigate to localhost:8000/graphql to query your database (using graphiql)

Navigate to localhost:3000 to query the database (login/SignUp) with React

DOCS

Graphql