Skip to content

bryce-n-dev/book-project-api

Repository files navigation

Book Project API

Book Project API is a REST API built with FastAPI, SQLAlchemy, and SQLite.

Installation

Run the follow code below to create a virtual environment and install the required dependencies. Note that this has only been tested on version Python 3.8.13.

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

For Windows

python -m venv venv
cd venv/Scripts/
activate
cd ../..
pip install fastapi
pip install "uvicorn[standard]"
pip install sqlalchemy
pip install httpx
pip install pytest

Usage

To run the server, run the following command.

uvicorn main:app --reload

By default, the server will run on port 8000.

To run static type checking with mypy, run the following command.

mypy main.py

To run all unit tests, run the following command.

pytest

About

REST API for Book Project website (COMP 354).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages