Python flask API application for The Modern Engagement Tool project.
- Install the following:
- Install Dependencies
- Run
make setupin the root of the project (met-api)
- Run
- Start the databases
- Run
docker-compose upin the root of the project (met-api)
- Run
The development scripts for this application allow customization via an environment file in the root directory called .env. See an example of the environment variables that can be overridden in sample.env.
The following commands support various development scenarios and needs.
Before running the following commands run . venv/bin/activate to enter into the virtual env.
make runRuns the python application and runs database migrations.
Open http://localhost:5000/api to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
make testRuns the application unit tests
make lintLints the application code.
Ensure the latest version of VS Code is installed.
The launch.json is already configured with a launch task (MET-API Launch) that allows you to launch chrome in a debugging capacity and debug through code within the editor.