This boilerplate was intended for personal use but anyone can use it if they want to. It comes with authentications routes handle with json webtokens and passport js.
git clone
this repo- cd into the folder and create a
.env
file with the url as MONGO_DB_URL to your mongodb and a secret string as SECRET for creating the token. You can create a database with mongodDb Atlas - run
yarn
ornpm i
to install dependencies - run
yarn dev
ornpm run dev
- you should see
Express listenning in port 4000 👍
- Have fun
- bcryptjs
- body-parser
- connect-mongo
- cookie-parser
- cors
- dotenv
- express
- express-session
- jsonwebtoken
- mongoose
- passport
- passport-jwt
- validator