WorkOrders

Microservice for handling work orders and when are done send event through Redis streams

Stars
0
Committers
2

work orders

Requirements

  • Python 3.11
  • PostgreSQL
  • Docker
  • Redis

Work order REST API

Running Development Version With Flask

  1. Clone the repo:
git clone https://github.com/Edmartt/WorkOrders.git
  1. Browse into the project directory
cd WorkOrders/
  1. Create a virtual environment
python -m venv <virtual-environment-name>
  1. Activate the virtual environment
source <virtual-environment-name>/bin/activate
  1. Install dependencies
pip3 install -r requirements
  1. Set the environment variables following the envrc.example file here .envrc.example
source .envrc

Note

Remember to set a .env file for docker-compose env.example and run docker-compose up -d for creating a postgres instance

  1. Migrations

We need migrations for our data models

flask db upgrade
  1. Run with
flask run

Note

For requesting the api docs after running the project just go to /api/docs

Related Projects