For specific Windows installation see Windows setup.
- Git must be available
-
sudo apt update -
sudo apt install apt-transport-https ca-certificates curl software-properties-common -
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" -
sudo apt update -
sudo apt install docker-ce docker-compose -
sudo usermod -aG docker ${USER} -
Reboot your PC
-
Run the following commands:
git clone git@github.com:WorldHealthOrganization/herams-backend.git
cd herams-backend
cp .env.default .env
- Optionally alter
.envto suit your preferences, it is recommended to set UID and GID to prevent permission issues also remove parameters that contains "/" like the smtp and database. - Run
docker compose up -d devdb testdb phpmyadmin nginx-api nginx
After taking the above steps you will have everything up and running:
- A database with username
rootand passwordsecret, and a user / password / database combo from your.envfile. - The database can be accessed from the phpmyadmin.
- An application with (invalid) email:
admin@user.comand password:Test12345 - A mailcatcher allowing you to inspect mails sent by the system
We expose a number of commands via docker-compose:
docker-compose run --rm composerwill run composer, use this to install / update dependencies.docker-composer run --rm codeceptionwill run the test suite