Skip to content

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.

  1. 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.
  2. After the first time you run, database will be empty. If you want to have some data, run make docker/migrate docker/seed.
  3. Open your browser and visit http://localhost:3001.
  4. To stop the container, just run make docker/down at anytime.

To run the tests, there are a few commands:

  1. make docker/tests/backend to run the backend tests.
  2. make docker/tests/frontend to run the frontend tests. At this moment, jest watch mode is not supported by current container.
  3. 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.

Clone this wiki locally