benjaminbhollon / see-with-eyes-closed

The code for the See With Eyes Closed blog.
https://seewitheyesclosed.com
GNU General Public License v3.0
3 stars 0 forks source link

ESLint fixes, stylistic fixes #10

Closed zmontgo closed 3 years ago

zmontgo commented 3 years ago

Began cleaning up code. Extrapolated long strings into json files in /bin. Flattened buttons to keep consistent with the rest of the theme.

zmontgo commented 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!

zmontgo commented 3 years ago

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.

benjaminbhollon commented 3 years ago

The crud functions weren't returning anything, so I fixed that.

benjaminbhollon commented 3 years ago

I added npm test to run ESLint and try to automatically fix errors.