Refactoring Node App
ShubhamPalriwala opened this issue · comments
Shubham Palriwala commented
Refactor the app:
Change the node start script in package.json to
PACKAGE.JSON: node index.js
The file structure should also fill:
index.js:
/app app.js-> all routes here pass through the .env variable APP_ENIGMA_START_TIME
/web web.js-> all routes ere pass through the .env variable ENIGMA_START_TIME
The controllers and routes should be the same as they were before!