This application comprises of two major frameworks: Express for backend and React for frontend.
This requires the latest npm
and node
installed. Please refer to these instructions.
npm install
npm test
npm run dev
on a separate window- create or edit your test first and then code to pass those tests
- visit http://localhost:3000 to view your changes
npm run build
to deploy to the backend- visit http://localhost:8000 to view the production-ready build
foreman start
- Production Server (requiresforeman
installed)npm start
- Test Servernpm test
- TDD watcher and test runnernpm run frontend
- Frontend Dev with React Create App environmentnpm run backend
- Backend Dev with Node Express environmentnpm run dev
- Concurrently run both frontend and backendnpm run build
- Build and compile the frontend to be served through the backend
- http://localhost:3000/ - displays the frontend work in progress
- http://localhost:8000/ - displays the build
You can typically deploy this to a Heroku or Dokku server for quick testing.
git checkout -b <branch-name>
- Edit the
.gitignore
file to swap the ignored folders:
# build/
src/
public/
git push <remote-name> <branch-name>
orgit push heroku <branch-name>:master