Hello, I'm Ireng Febrian Sanjaya. I'm entering week 10 and I practicing in making RESTFUL API. For this week my project is requiring an intermediate assignment
- JAVASCRIPT
- MONGODB
- SWAGGER FOR DOCUMENTATION
In this project, I make several folder to differ the purpose of each file and here is the picture;
Each of this folder consist different of file with different purpose to make sure everything is work as it should.
- Config: Inside of this file there is jwt.js for JWT Token
- Middleware consist of 3 Javascript Files such as:
- Authentication: To give authentication for the transfer request with JWT Token.
- Authorization: To give authorization towards the role such as maker and approver.
- Database: To connect the database to MongoDB and I using atlas MongoDB for the database support.
- Routes consist of 2 Javascript Files such as:
- Transfer: The purpose is for Transfer
- User: the purpose is for register and login
- Services consist of 2 Javascript Files such as:
- Transfer: All code for getAllTransfer, createTransfer and updateTransfer
- User: All code for Register and Login
- App.js is contain the logic off the path and port.
- doc.yaml is a file for Swagger Documentation.
- Cyclic for Deployment
Here's a link below for deployment link:
This project is far from perfect and I need your feedback to improve this project
Contact Me:
Phone: 0821-3611-1204
Email 1 / Email 2
Linkedin