Like WhenIsGood, but gucci.
For CS3141 (Team Software Project) Spring 2018.
Install:
- Node.js 8.x (check version with
node -v) - Yarn
- Gulp (install with
yarn global add gulp-cli) - EditorConfig plugin for your editor/IDE
git clonethe repocdto the root of the repo- Run
yarnto grab dependencies - Create the
.envfile in the repo root - Run
gulpto start the Express server and Gulp watch tasks - Code away, commit changes, and profit!
Install:
- PM2 (install with
yarn global add pm2)
git clonethe repocdto the root of the repo- Run
yarnto grab dependencies - Run
gulp build --productionto build production-ready assets - Run
NODE_ENV=production pm2 start app.jsto start the server with PM2
NOTE: Assets need to be re-built manually after pulling down changes.
There are several gulp tasks that can be useful when developing:
servespins up a local server (is thedefaulttask)--prod/--productionto serve the production assets (mimics production site)--tunnelto create a temporary URL via localtunnel.me (to share with someone)
buildbuilds the assets--prod/--productionbuilds for production (minify, optimize, etc.)
cleanwipes the build directory
