Feat: Implement token tracking, soft delete, and Admin UI improvements
This commit is contained in:
44
.agent/workflows/setup_local_env.md
Normal file
44
.agent/workflows/setup_local_env.md
Normal file
@@ -0,0 +1,44 @@
|
||||
---
|
||||
description: How to set up the local development environment using pyenv
|
||||
---
|
||||
1. **Install Python**
|
||||
Install a compatible Python version (e.g., 3.11.9):
|
||||
```powershell
|
||||
pyenv install 3.11.9
|
||||
```
|
||||
|
||||
2. **Set Local Version**
|
||||
Set the local python version for this project:
|
||||
```powershell
|
||||
pyenv local 3.11.9
|
||||
```
|
||||
|
||||
3. **Check Version**
|
||||
Verify the correct version is active:
|
||||
```powershell
|
||||
python --version
|
||||
```
|
||||
|
||||
4. **Create Virtual Environment**
|
||||
Create a virtual environment to isolate dependencies:
|
||||
```powershell
|
||||
python -m venv .venv
|
||||
```
|
||||
|
||||
5. **Activate Environment**
|
||||
Activate the virtual environment:
|
||||
```powershell
|
||||
.\.venv\Scripts\activate
|
||||
```
|
||||
|
||||
6. **Install Dependencies**
|
||||
Install the required packages:
|
||||
```powershell
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
|
||||
7. **Run Application**
|
||||
Start the server using the run script:
|
||||
```powershell
|
||||
python run.py
|
||||
```
|
||||
27
.agent/workflows/setup_with_uv.md
Normal file
27
.agent/workflows/setup_with_uv.md
Normal file
@@ -0,0 +1,27 @@
|
||||
---
|
||||
description: How to run the application using uv
|
||||
---
|
||||
1. **Initialize Project** (Already done)
|
||||
If you haven't already:
|
||||
```powershell
|
||||
uv init
|
||||
```
|
||||
|
||||
2. **Install Dependencies** (Already done)
|
||||
Install required packages:
|
||||
```powershell
|
||||
uv add -r requirements.txt
|
||||
```
|
||||
|
||||
3. **Run Application**
|
||||
You can run the application directly using `uv run`. This automatically uses the virtual environment managed by `uv`.
|
||||
|
||||
**Option A: Using the run script (Recommended)**
|
||||
```powershell
|
||||
uv run run.py
|
||||
```
|
||||
|
||||
**Option B: Using Uvicorn directly**
|
||||
```powershell
|
||||
uv run uvicorn app.main:app --reload
|
||||
```
|
||||
Reference in New Issue
Block a user