Skip to content
Snippets Groups Projects
Commit a765b10a authored by I Kadek Yuda Budipratama Giri's avatar I Kadek Yuda Budipratama Giri
Browse files

Update README.md

parent 02ac869d
Branches
No related merge requests found
...@@ -14,22 +14,23 @@ npm start ...@@ -14,22 +14,23 @@ npm start
## File Structure ## File Structure
``` ```
src backend
+-- config +-- src
| +-- config.js (Secret key & expiration JWT. Add Role string here when adding new role.) | +-- config
| +-- db.config.js (Database and Sequelize config) | | +-- config.js (Secret key & expiration JWT. Add Role string here when adding new role.)
| +-- env.js (Wrapper for env variables) | | +-- db.config.js (Database and Sequelize config)
| | | +-- env.js (Wrapper for env variables)
+-- controller | |
| +-- *Controller.js (Add your controllers here) | +-- controller
| | | +-- *Controller.js (Add your controllers here)
+-- model | |
| +-- *.model.js (Add models here and follow the name convention) | +-- model
| | | +-- *.model.js (Add models here and follow the name convention)
+-- router | |
| +-- router.js (Routing goes here) | +-- router
| +-- verifyJwtToken.js (Middleware functions involving JWT token should go here) | | +-- router.js (Routing goes here)
| +-- verifySignUp.js (Middleware functions involving Sign Up) | | +-- verifyJwtToken.js (Middleware functions involving JWT token should go here)
+-- app.js | | +-- verifySignUp.js (Middleware functions involving Sign Up)
.env.example (Example of .env file. Please copy this to .env and set it to your env) | +-- app.js
+-- .env.example (Example of .env file. Please copy this to .env and set it to your env)
``` ```
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment