Closed zmontgo closed 3 years ago
Transitioned to use PM2 instead of simply running the app using node app.js
. PM2 is made to run applications all the time, logging errors, warnings, and normal logs in different files, letting you exit the terminal while keeping the app running, and ensuring that the app stays running fast for long periods of time. Useful for both development and production environments!
Run npm start
to start the application, and npm stop
to stop it. It will remain running if you don't. Remember to re-run npm install
to get the PM2 package.
The crud functions weren't returning anything, so I fixed that.
I added npm test
to run ESLint and try to automatically fix errors.
Began cleaning up code. Extrapolated long strings into json files in
/bin
. Flattened buttons to keep consistent with the rest of the theme.