https://github.com/igitonga/fastapi-react
A recipe app
https://github.com/igitonga/fastapi-react
alembic fastapi postgresql react sqlalchemy
Last synced: 3 months ago
JSON representation
A recipe app
- Host: GitHub
- URL: https://github.com/igitonga/fastapi-react
- Owner: igitonga
- Created: 2025-02-22T16:34:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-23T14:06:12.000Z (over 1 year ago)
- Last Synced: 2025-02-23T15:19:41.732Z (over 1 year ago)
- Topics: alembic, fastapi, postgresql, react, sqlalchemy
- Language: Python
- Homepage:
- Size: 26.7 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Recipe App
## Getting started
This project is a simple recipe app that allows you to add, edit, and delete recipes.
### Technologies
- FastAPI
- React
- React Router
- React Query
- TailwindCSS
- PostgreSQL
- SQLAlchemy
- Alembic
### Requirements
- Python 3.10+
- Node.js 18+
- PostgreSQL 14+
### Installation
1. Clone the repository
2. Install the dependencies
### Move into backend directory
```bash
cd backend
```
### Create and activate virtual environment
```bash
python -m venv venv
source venv/bin/activate
```
### Install the dependencies
```bash
pip install -r requirements.txt
```
### Create .env file
```bash
cp .env.example .env
```
### Run the migrations
```bash
alembic upgrade head
```
### Run data seeder
```bash
python seeders.py
```
### Run the backend
```bash
python main.py
```
### Move into frontend directory
```bash
cd frontend
```
### Install the dependencies
```bash
npm install
```
### Run the frontend
```bash
npm run dev
```