- Python 3.11
- PostgreSQL
- Docker
- Redis
Work order REST API
- Clone the repo:
git clone https://github.com/Edmartt/WorkOrders.git
- Browse into the project directory
cd WorkOrders/
- Create a virtual environment
python -m venv <virtual-environment-name>
- Activate the virtual environment
source <virtual-environment-name>/bin/activate
- Install dependencies
pip3 install -r requirements
source .envrc
Remember to set a .env file for docker-compose and run
docker-compose up -d for creating a postgres instance
- Migrations
We need migrations for our data models
flask db upgrade
- Run with
flask run
For requesting the api docs after running the project just go to /api/docs