Part of my Microservice architecture where I am creating standalone and reusable programmes. The Auth service is used to authenticate and grant a token by implementing local (email & password) and Google.
Current
- sign up new user
- create Token
- sign in existing user (normal + with Google)
- update user
- get user by token
Upcoming
- reset password and send email
- Node / Express
- MongoDB / Mongoose
- Joi
- PassportJS (local, JWT, Google)
After downloading or cloning the repo, you need to follow this steps to have the development environment running :
- Make sure that you have npm, node and mongodb installed
- Run mongo server
- Install dependencies :
npm install - Create config/config.env and add the following keys and values: NODE_ENV=development PORT=5000 MONGO_URI= JWT_SECRET= GOOGLE_CLIENT_ID= GOOGLE_CLIENT_SECRET=
- In the project directory, run the command
npm run devto start the development server with nodemon
