Skip to content

FastAPI app built to be the backend of Dunder Mifflin Paper Company website

License

Notifications You must be signed in to change notification settings

IsmaelBortoluzzi/Dunder-Mifflin-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

THIS PROJECT WAS DONE WITH PYTHON 3.10.13

Run it:

  • Create a virtual environment (this is done only once):

      python -m venv venv
    
  • Activate venv on linux:

    source venv/bin/activate
    
  • Install dependencies:

    pip install -r requirements.txt
    
  • Run server

    uvicorn main:app
    

To access the swagger docs with all available endpoints, access 127.0.0.1:8000/docs in your browser

To create a new database with some products, city and state on it, first of all uncomment line 46 in main.py file:

# reset_database()

after you uncommented it, run the file:

python main.py

it should reset the database and run the server


Thanks for taking a look at my project!

About

FastAPI app built to be the backend of Dunder Mifflin Paper Company website

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages