- Build application:
$ docker-compose build
- Run application:
$ docker-compose up
- Following endpoints is opened:
- Frontend:
localhost:3000 - Custom API:
localhost:5000 - Simulator API:
localhost:5001
- Frontend:
- Add
SSH_KEY_NAMEandDIGITAL_OCEAN_TOKENto your environment.You get your$ nano ~/.bashrc #(or whatever shell you use)
SSH_KEY_NAMEandDIGITAL_OCEAN_TOKENfrom the settings on cloud.digitalocean.comexport SSH_KEY_NAME="My Computer SSH" export DIGITAL_OCEAN_TOKEN="My Secret Key"
- Reload shell configuration after last install:
$ source ~/.bashrc
- Install Digital Ocean plugin for Vagrant
$ vagrant plugin install vagrant-digitalocean
- Deploy to Digital Ocean
$ vagrant up
- Bring up the application as described in the 'Setup and run' section.
- Run
docker build -t minitwit-flagtool -f ./backend/Dockerfile-flagtool ./backendto build the Docker image with the flag tool. - Run
docker run --network=minitwit-network minitwit-flagtool (args...)to run the flag tool.
- Run
docker-compose buildto build all application images. - Run
docker build -t minitwit-simulator-integration-test ./tests/simulator-integration-test -f ./tests/simulator-integration-test/Dockerfileto build Docker image with simulator integration tests. - Run
docker-compose up -d --force-recreateto run application in detached mode. - Run
docker run --network=minitwit-network minitwit-simulator-integration-testto execute simulator integration test.
- Run
docker-compose buildto build all application images. - Run
docker build -t minitwit-simulator ./tests/simulator -f ./tests/simulator/Dockerfileto build Docker image with simulator test. - Run
docker-compose up -d --force-recreateto run application in detached mode. - Run
docker run --network=minitwit-network minitwit-simulatorto execute simulator test.
- Setup and start the application as described in 'Setup and run' section.
- Navigate to the
testsdirectory and run the following command to install all required dependencies:npm install - In the
testsdirectory, run the following command to start the E2E test:npm test