-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5acfaac
commit efb5aac
Showing
1 changed file
with
61 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,61 @@ | ||
# ai-platform | ||
# T4D AI Service | ||
|
||
This is a FastAPI application for the T4D AI Service. | ||
|
||
## Prerequisites | ||
|
||
- Python 3.10+ | ||
- PostgreSQL | ||
- `pip` (Python package installer) | ||
|
||
## Setup | ||
|
||
### 1. Clone the Repository | ||
|
||
```bash | ||
git clone https://github.com/ProjectTech4DevAI/ai-platform.git | ||
cd https://github.com/ProjectTech4DevAI/ai-platform.git | ||
``` | ||
|
||
### 2. Create a Virtual Environment | ||
|
||
```bash | ||
python -m venv venv | ||
source venv/bin/activate | ||
``` | ||
|
||
### 3. Install Dependencies | ||
|
||
```bash | ||
pip install -r requirements.txt | ||
``` | ||
|
||
### 4. Set Up Environment Variables | ||
|
||
Create the environment from the template | ||
|
||
```bash | ||
cp .env.example .env | ||
``` | ||
|
||
### 5. Set Up Pre-commit Hooks | ||
|
||
Install pre-commit and set up the hooks | ||
|
||
```bash | ||
pre-commit install | ||
pre-commit run --all-files | ||
``` | ||
|
||
### 6. Run the application | ||
|
||
```bash | ||
python main.py | ||
``` | ||
|
||
## API Documentation | ||
|
||
FastAPI automatically generates interactive API documentation. You can access it at: | ||
|
||
- Swagger UI: http://127.0.0.1:7050/api/docs | ||
- ReDoc: http://127.0.0.1:7050/api/redoc |