- The API can be accessed here: http://167.71.42.226
Please refer to http://138.68.75.94/docs
If you are new to Docker, click here to install and get started
- Pull docker image from hub
docker pull plasticfruits/fortris-app
- Run container
docker run --name mycontainer -p 80:80 plasticfruits/fortris-app
- Open the URL where the app is being served [http://0.0.0.0:80]
- Exit with
ctrl + c
- cd into folder
cd fastapi-fortris
- Create new conda environment
conda create --name fruity-env --file requirements.txt
- Activate environment
conda activate fruity-env
- cd to app folder
cd app
- Start the live server
uvicorn main:app --reload
- Open URL where app is being served (e.g. [http://127.0.0.1:8000])
- Google Trends API seem not returning results for last three days, therefore Task 5 returns only 4 data objects.
- No need to use docker-compose as only 1 container being used
- Add exception handling to endpoints
- Investigate why Google Trends API not passing last 3 days
- Better documentation on functions
- Remove unused libraries
- Read more about async calls & FastAPI :D