This project is cool.
-
Install Docker
-
Add the following
.envfile inside/api:env="prod" # prod | stage | dev
-
Add an empty
.envfile inside/web -
Compose up
docker-compose.yaml
That's it! Go to localhost:3000 to use the interactive webapp, or localhost:8000 to try out the API.
-
Install Docker
-
Add the following
.envfile inside/api:env="dev" # prod | stage | dev
-
Add an empty
.envfile inside/web -
To enable linting inside your preferred IDE, create a Python virtual environment and install the Python dependencies. Likewise, install the JavaScript dependencies for JS linting.
python -m venv venv source venv/bin/activate # for unix ./venv/Scripts/activate # for windows python -m pip install -r api/requirements.txt cd app npm install yarn yarn install
-
Compose up
docker-compose-dev.yamlfor a build with hot-reloading enabled on the webapp upon file changes
There are several tests scripts which can be called with the pytest command inside the api container. Reference the Pytest usage guide more details on running a specific test. For local usage, it is recommended to add the -v flag for verbose outputs.