- 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.jsfile - add the
secrets.jsfile to theconf/directory - ask in the slack channel for the
.envfile - add the
.envfile 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 stopto 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 psand copy theCONTAINER IDassociated with the docker container running mongo - run the shell in the docker container
docker exec -it CONTAINER mongo