Demo: https://expensely.herokuapp.com/
- Start app:
docker-compose up
- Optional run db seed:
docker-compose run backend npm run seed
- Run webpack dev server on your host:
npm run frontend:dev
- Frontend: Node >= v4.4.5, NPM
- Backend: Node >= v6.9.1, PostGres ^9.4.9
- Set PG_URL, e.g. 'tcp://user:pass@hostname/dbname'
- Create database in Postgres, see docs/Postgres.md
- Run
source setenv-test.sh
for dev database - Run
npm run test:backend
to server tests
- Run
npm run test:frontend
for frontend tests (No database needed)
- Create database in Postgres, see docs/Postgres.md
- Run
source setenv-dev.sh
for dev database - Backend: nodejs app,
npm run backend
, http://localhost:3000 - Frontend: webpack dev server
npm run frontend
, http://localhost:8080 - Uses dev server proxy option on
/api
to access backend API
- Backend should run fine inside Vagrant box
- Frontend - need
--watch-poll
and--host
params withwebpack-dev-server
- Not recommended, rather run backend in Vagrant, forward ports & webpack on host machine
# webpack in vagrant: watch polling (slow) listen on all interfaces
webpack-dev-server --watch-poll --host 0.0.0.0 --content-base public/
TODO