CPSC 449 Final Project
Luke Eltiste
William Lim
- Create a Virtual Environment to house the dependencies for the project
- See here for a tutorial on how to setup an environment
- Install the dependencies from
requierments.txt
using the followingpip install -r .\requirements.txt
- Copy
.env.example
to.env
- Fill in the details for your own MongoDB server
- Run the following command to start the API
uvicorn main:app
- Add
--reload
if you are making changes to the source files
- Run the Dev Helper endpoints either from the
/docs
enpoint or by calling the endpoints to setup the database/add-books
- Adds in fake book data to the database for the enpoints to use
/add-transactions
- Adds in fake transaction data on the books
/add-indexes
- Adds in the indexes to optomize the querying enpoints
- Everything is ready to go and you can start using the API