Clone repository
$ git clone <repo_url>
$ cd <repo_dir>
$ yarn
Install dependencies
$ cd <repo_dir>
# using yanrn
$ yarn
#using npm
$ npm i
Run
production mode
## build server and client bundles
$ yarn build
## start production server
$ yarn start
Development mode
## start server bundling and watching
$ yarn run watch
## start development server
$ yarn run start:dev
Testing
yarn test
$ docker build -t todo-app .
$ docker run --name my-todo-app -p 3000:3000 todo-app
# To view the application, you need to know the ip address of your virtual machine
$ docker-machine ip default
On first run delete node_modules directory on your local machine
## run container & watch server bundle
$ docker-compose up
## start node server
$ docker exec -it <container name> /bin/bash
$ cd /project
$ NODE_ENV=development node ./index.js