This is a demo for creating a scheduler with an API. We use Rocketry for our scheduler and FastAPI for our API.
This contains three source files:
app/api.py
: FastAPI applicationapp/scheduler.py
: Rocketry applicationapp/main.py
: Main launch scriptAdd your tasks need to app/scheduler.py
and
modify app/api.py
as needed.
Clone this repository:
git clone https://github.com/Miksus/rocketry-with-fastapi.git
Make sure you have Python 3.7 or newer. Then just install the dependencies:
pip install -r requirements.txt
python app/main.py
For the front-end, download Node, npm and yarn. Then change to frontend directory to install the Node modules:
yarn install
Then start the server:
yarn start
Read more about Rocketry:
Read more about FastAPI:
Read more about React:
Author: Mikael Koli