- install node and mongo
$ brew install node mongo
- install packages
$ npm install
- install sass
$ sudo gem install sass
You only have to do this once.
- ask in the slack channel for the
secrets.js
file - add the
secrets.js
file to theconf/
directory - ask in the slack channel for the
.env
file - add the
.env
file to the project root directory - generate assets with webpack
$ npm run build
- Install Docker
docker-compose up -d mongo
- Command starts a mongodb container running in the background, available at localhost
- Run
docker-compose stop
to stop mongo container (will continue if not explicitly stopped)
- start the database service
$ docker-compose up -d mongo
- start the application
$ npm run start-dev
$ npm run seed
After running the seed task you should be able to log in to the app with username admin
and password password
.
localhost:8080/login
- run
docker ps
and copy theCONTAINER ID
associated with the docker container running mongo - run the shell in the docker container
docker exec -it CONTAINER mongo