A microservice to automate the generation and distribution of rt reports.
-
Clone the repo:
git clone https://github.com/rtCamp/rt-report-automation.git cd rt-report-automation -
Set up environment variables:
Create a
.envfile in the root directory based on the provided.env.example. -
Build and start the application:
Using Docker Compose:
make build make start
To stop the application:
make down
This will start the FastAPI server on
http://localhost:8000. The API docs will be available athttp://localhost:8000/docs.
To ensure code quality and consistency, pre-commit hooks are set up using the pre-commit tool. Follow these steps to set it up:
-
Install pre-commit:
If you haven't installed
pre-commityet, you can do so using pip:pip install pre-commit
-
Install the pre-commit hooks: Run the following command in the root directory of the project:
pre-commit install
Inngest is used for orchestrating workflows. To learn in detail about its dev server, visit Inngest Dev Server.
Run the following command to start the Inngest dev server:
npx inngest-cli@latest dev
# You can specify the URL of your development `serve` API endpoint
npx inngest-cli@latest dev -u http://localhost:8000/api/inngest --no-discovery