An open API service indexing awesome lists of open source software.

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

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
```