Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bbelderbos/affirmations-api
Using FastAPI + SQLModel to keep track of affirmations
https://github.com/bbelderbos/affirmations-api
Last synced: 1 day ago
JSON representation
Using FastAPI + SQLModel to keep track of affirmations
- Host: GitHub
- URL: https://github.com/bbelderbos/affirmations-api
- Owner: bbelderbos
- Created: 2021-09-05T18:02:14.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-24T14:35:53.000Z (almost 3 years ago)
- Last Synced: 2023-03-23T02:12:12.459Z (over 1 year ago)
- Language: Python
- Size: 26.4 KB
- Stars: 5
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Affirmations API
This API is to keep track of affirmations.
To get a virtual environment running and install the dependencies:
```
make setup
```You might have to manually enable your virtual environment after this:
```
source venv/bin/activate
```Next set your `DATABASE_URL` environment variable:
```
cp .env-template .env
# update DATABASE_URL in .env
```To run the flake8 / mypy / tests:
```
make lint
make typing
make test
```Or run them all in one:
```
make ci
```To run `black` upon commit (recommended) install `pre-commit`:
```
make precommit
```To run the `uvicorn` webserver:
```
make run
```Then navigate to [http://localhost:8000/docs](http://localhost:8000/docs) - enjoy!