amilner42 / code-tidbit

Share Programming Knowledge Better
GNU General Public License v3.0
9 stars 1 forks source link

Backend/frontend production modes, updating tooling scripts #147

Closed amilner42 closed 7 years ago

amilner42 commented 7 years ago

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 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).