Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

UCBoulder/Bookstore-FASTAPI-Integrations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bookstore REST API

Provides RESTful API interface(s) for UCB Bookstore data.

Config variables -- other than those passed in by environment are in the config.py file.

Local Development

Environment Vars

Set environment variables for GRAPHQL_KEY, BASIC_USERNAME, and BASIC_PASSWORD. For ex:

#bash
export KEYNAME="123"

#windows cmd
set KEYNAME=123

#windows powershell
$Env:KEYNAME="123"

Format, Lint, Test, and Run

  1. To format your code, run make format
  2. To lint your code, run make lint
  3. To test your code, run make tests
  4. To run uvicorn locally, run make uvicorn-run

Container'ing

Build

make docker-build

Run

make docker-run