Repository files navigation
Build application:
Run application:
Following endpoints is opened:
Frontend: localhost:3000
Custom API: localhost:5000
Simulator API: localhost:5001
Deploy and run with Vagrant on Digital Ocean
Add SSH_KEY_NAME and DIGITAL_OCEAN_TOKEN to your environment.
$ nano ~ /.bashrc # (or whatever shell you use)
You get your SSH_KEY_NAME and DIGITAL_OCEAN_TOKEN from the settings on cloud.digitalocean.com
export SSH_KEY_NAME=" My Computer SSH"
export DIGITAL_OCEAN_TOKEN=" My Secret Key"
Reload shell configuration after last install:
Install Digital Ocean plugin for Vagrant
$ vagrant plugin install vagrant-digitalocean
Deploy to Digital Ocean
Bring up the application as described in the 'Setup and run' section.
Run docker build -t minitwit-flagtool -f ./backend/Dockerfile-flagtool ./backend to build the Docker image with the flag tool.
Run docker run --network=minitwit-network minitwit-flagtool (args...) to run the flag tool.
How to run integration tests for simulator in Docker container:
Run docker-compose build to build all application images.
Run docker build -t minitwit-simulator-integration-test ./tests/simulator-integration-test -f ./tests/simulator-integration-test/Dockerfile to build Docker image with simulator integration tests.
Run docker-compose up -d --force-recreate to run application in detached mode.
Run docker run --network=minitwit-network minitwit-simulator-integration-test to execute simulator integration test.
How to setup and run (minified) simulator in Docker container:
Run docker-compose build to build all application images.
Run docker build -t minitwit-simulator ./tests/simulator -f ./tests/simulator/Dockerfile to build Docker image with simulator test.
Run docker-compose up -d --force-recreate to run application in detached mode.
Run docker run --network=minitwit-network minitwit-simulator to execute simulator test.
How to setup and run E2E test
Setup and start the application as described in 'Setup and run' section.
Navigate to the tests directory and run the following command to install all required dependencies: npm install
In the tests directory, run the following command to start the E2E test: npm test
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Languages
JavaScript
66.3%
Python
26.4%
CSS
4.4%
Dockerfile
1.6%
Shell
0.6%
HTML
0.6%
Makefile
0.1%
You can’t perform that action at this time.