- docker-compose
- make
- elixir
- node
macOS:
brew cask install docker
brew install elixir nodeLinux/WSL2:
wget https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb && sudo dpkg -i erlang-solutions_2.0_all.deb
curl -fsSL https://deb.nodesource.com/setup_15.x | sudo -E bash -
sudo apt update
sudo apt install -y inotify-tools esl-erlang elixir nodejs
# For e2e tests
sudo apt install -y libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfbClone repository and run:
docker-compose up -d mariadb
make seedto start and seed the database.
Run:
npm install
mix deps.get
make serverto start the server locally.
After application is started, you can go to http://localhost:8080.
Alternatively, you can run server via Docker:
# dev
docker-compose up dev
# or
# prod
docker-compose up prodmix formatmake testPre-requirement is to start the server (either locally or via Docker).
Then you can use:
# Run cypress tests locally.
make e2e
# Run cypress tests via their GUI (good for development and debugging).
make e2e-dev
# Run cypress via Docker like on CI.
make e2e-dockerYou need to have DB export database.sql present in project's directory.
make importmix ecto.migrate