Set up a bunch of things for the deploy, haven't actually deployed yet (so #134 is staying open) but all the infrastructure to deploy is in place. The 10 bash build scripts I had have been updated into like 5 lines of npm scripts, everything builds faster now and the output is less jumbled (I use 2 terminals and build/watch both the frontend and backend at the same time). The backend also now restarts using nodemon. The backend also no longer hosts the frontend, we use webpack devServer instead, this helps treat them as two separate units even during development to minimize things to worry about when we switch for production (for example dealing with CORS during development so it doesn't surprise us during prod).
Closes
Closes #135
Description
Set up a bunch of things for the deploy, haven't actually deployed yet (so #134 is staying open) but all the infrastructure to deploy is in place. The 10 bash build scripts I had have been updated into like 5 lines of npm scripts, everything builds faster now and the output is less jumbled (I use 2 terminals and build/watch both the frontend and backend at the same time). The backend also now restarts using
nodemon
. The backend also no longer hosts the frontend, we use webpackdevServer
instead, this helps treat them as two separate units even during development to minimize things to worry about when we switch for production (for example dealing with CORS during development so it doesn't surprise us during prod).