- Develop API endpoints to connect with MongoDB Atlas
- Create an endpoint to register new users and authenticate existing users. Upon successful authentication, generate an access token that expires after one minute. This access token should be used as an authentication header for subsequent requests
- Implement an endpoint to update user records, accessible by authorized users
- Set up an endpoint to accept requests from the Stripe webhook.
- Verify successful payment events from Stripe.
- Upon receiving payment event, update user status to "paid" in the database.
- Express
- MongoDB
- Stripe
- Cloudinary
- Nodemailer
- Docker
- NGINX
I this project i made use of clean achitecture
Application layer (REST)
-> Domain Layer (Repositories)
-> Data Layer (Mongodb)
Which then encourages easy error handling, mock testing, and refactoring of code
Replicate .env.example to a .env file
most likely looks like this!
{
"status": "success",
"message": "Successully perform an action",
"data": {...},
}
yarn
yarn dev
make dev-start
Check the Makefile for more commands