ALeRCE Forecast API, build to have several types of forecast models for different astronomical object.
To run the API just install the requirements, there are some issues installing directly the resources from the file, we recommend installing them one by one.
For example in bash:
while read p; do pip install --use-deprecated=legacy-resolver $p; done < requirements.txt;
Then just run the app with
python -m web.app
This will deploy the webserver locally in http://localhost:5000
To deploy the API we recommend using a docker container with gunicorn.
Create the image
docker build -t forecast_api .
Run the container
docker run -p 8080:8080 forecast_api
This will deploy the API on port 8080.