joesajigeorge / auth-microservice

An Auth Microservice using Node.JS, Serverless Framework, AWS Lambda, Mongo.DB, and JWT.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Auth microservice

An example of Auth microservice using Node.js, Serverless framework, and Mongo.DB.

How to deploy?

Make sure serverless framework is installed:

  yarn global add serverless

Install dependencies:

  yarn install

Configure .env with JWT Secret and MongoDB URI (you can use MongoDB Atlas):

MONGODB_URI=<MY_URI>
JWT_SECRET=<MY_SECRET>

Configure serverless framework with AWS access key and secret:

  serverless config credentials --provider aws --key <ID> --secret <SECRET> --profile devProfile

Deploy:

  serverless deploy

Notes:

Todo:

Contribute:

This is my first microservice using AWS Lambda 😉. Please feel free to contribute, forking this repository, and sending your pull request

About

An Auth Microservice using Node.JS, Serverless Framework, AWS Lambda, Mongo.DB, and JWT.


Languages

Language:JavaScript 99.5%Language:Shell 0.5%