-
Notifications
You must be signed in to change notification settings - Fork 2
Running on Docker
Gustavo Cunha edited this page Jan 15, 2020
·
1 revision
This application can be executed from a Docker container if you do not want to install all dependencies on your computer. To do so, follow the steps, after having Docker and Docker Compose properly installed in your computer.
- On your terminal,
make docker/up
, to boot the container. If you are running this for the first time, it will take some time to install all dependencies. - After the first time you run, database will be empty. If you want to have some data, run
make docker/migrate docker/seed
. - Open your browser and visit http://localhost:3001.
- To stop the container, just run
make docker/down
at anytime.
To run the tests, there are a few commands:
-
make docker/tests/backend
to run the backend tests. -
make docker/tests/frontend
to run the frontend tests. At this moment, jest watch mode is not supported by current container. - End-to-end tests are not supported by current container.
If you change Gemfile
or package.json
to add or remove a dependency, you will need to rebuild the docker image. To do that, run make docker/build
.