initial gitea commit

This commit is contained in:
Lucas Jensen
2024-06-26 19:19:20 -07:00
commit e830445d02
47 changed files with 10936 additions and 0 deletions

28
server/README.md Normal file
View File

@@ -0,0 +1,28 @@
# Backend for lucasjensen.me
build with FastAPI and MySQL
## Setup
- create and activate virtual environment
- install requirements
- create database with mysql, note db name
- create .env file with db credentials (see `.env.example`)
- ensure mysql user has permissions to create tables
- run `create_tables.sql` to create tables
```bash
mysql -u [username] -p [database] < create_tables.sql
```
### Run
```bash
uvicorn main:app --reload --port 8001
```
### Test
```bash
pytest -s
```