Update README with SQLite configuration details
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: BackendIM <https://backend.im>
This commit is contained in:
parent
4e92bb1338
commit
598b4eb68e
@ -44,12 +44,15 @@ A RESTful API for an e-commerce application built with FastAPI and SQLite.
|
|||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
3. **Run database migrations**:
|
3. **Database Setup**:
|
||||||
|
The application uses SQLite as the database, which is stored in `../storage/db/db.sqlite` (outside the project root directory). This directory will be created automatically when the application runs.
|
||||||
|
|
||||||
|
4. **Run database migrations**:
|
||||||
```bash
|
```bash
|
||||||
alembic upgrade head
|
alembic upgrade head
|
||||||
```
|
```
|
||||||
|
|
||||||
4. **Start the API server**:
|
5. **Start the API server**:
|
||||||
```bash
|
```bash
|
||||||
uvicorn main:app --host 0.0.0.0 --port 8000 --reload
|
uvicorn main:app --host 0.0.0.0 --port 8000 --reload
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user