Skip to content

Commit de8d9b8

Browse files
authored
Documentation : repo enhancement (#496)
* Documentation : repo MDs enhancement and adding enhancement template
1 parent 579c38b commit de8d9b8

File tree

10 files changed

+282
-313
lines changed

10 files changed

+282
-313
lines changed

.env.example

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,8 @@
22

33
# This would be set to the production domain with an env var on deployment
44

5-
# used by Traefik to transmit traffic and aqcuire TLS certificates
6-
75
DOMAIN=localhost
86

9-
# To test the local Traefik config
10-
11-
# DOMAIN=localhost.tiangolo.com
12-
137
# Environment: "development", "testing", "staging", "production"
148

159
ENVIRONMENT=development
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Enhancement request
3+
about: Suggest an improvement to existing codebase
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the current behavior**
11+
A clear description of how it currently works and what the limitations are.
12+
13+
**Describe the enhancement you'd like**
14+
A clear and concise description of the improvement you want to see.
15+
16+
**Why is this enhancement needed?**
17+
Explain the benefits (e.g., performance, usability, maintainability, scalability).
18+
19+
**Additional context**
20+
Add any other context, metrics, screenshots, or examples about the enhancement here.

.github/workflows/cd-production.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy AI Platform to ECS Production
1+
name: Deploy Kaapi to ECS Production
22

33
on:
44
push:

.github/workflows/cd-staging.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy AI Platform to ECS
1+
name: Deploy Kaapi to ECS
22

33
on:
44
push:

.github/workflows/continuous_integration.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: AI Platform CI
1+
name: Kaapi CI
22

33
on:
44
push:
@@ -22,7 +22,7 @@ jobs:
2222

2323
strategy:
2424
matrix:
25-
python-version: ["3.11.7"]
25+
python-version: ["3.12"]
2626
redis-version: [6]
2727

2828
steps:

CONTRIBUTING.md

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# Contributing to Tech4Dev AI Platform
1+
# Contributing to Kaapi
22

3-
Thank you for considering contributing to **Tech4Dev AI Platform**! We welcome contributions of all kinds, including bug reports, feature requests, documentation improvements, and code contributions.
3+
Thank you for considering contributing to **Kaapi**! We welcome contributions of all kinds, including bug reports, feature requests, documentation improvements, and code contributions.
44

55
---
66

77
## 📌 Getting Started
88
To contribute successfully, you must first set up the project on your local machine. Please follow the instructions outlined in the project's README to configure the repository and begin your contributions.
99

10-
Before you proceed, **make sure to check the repository's [README](https://github.com/ProjectTech4DevAI/ai-platform/blob/main/backend/README.md) for a comprehensive overview of the project's backend and detailed setup guidelines.**
10+
Before you proceed, **make sure to check the repository's [README](https://github.com/ProjectTech4DevAI/kaapi-backend/blob/main/backend/README.md) for a comprehensive overview of the project's backend and detailed setup guidelines.**
1111

1212
---
1313

@@ -17,10 +17,18 @@ Before you proceed, **make sure to check the repository's [README](https://githu
1717
1. Click the **Fork** button on the top right of this repository.
1818
2. Clone your forked repository:
1919
```
20-
git clone https://github.com/{username}/ai-platform.git
21-
cd ai-platform
20+
git clone https://github.com/{username}/kaapi-backend.git
21+
cd kaapi-backend
2222
```
2323

24+
### Check for Existing Issues
25+
Before you start working on a contribution:
26+
1. **Check if an issue exists** for the bug or feature you want to work on in the [Issues](https://github.com/ProjectTech4DevAI/kaapi-backend/issues) section.
27+
2. **If no issue exists**, create one first using the templates present:
28+
- For bugs: Use the bug report template
29+
- For enhancements: Use the enhancement request template
30+
- For features: Create a feature request issue
31+
2432
### Create a Branch
2533
• Always work in a new branch based on main.
2634
• For branch name, follow this convention: ``type/one-line-description``
@@ -30,12 +38,9 @@ cd ai-platform
3038
- enhancement
3139
- bugfix
3240
- feature
33-
34-
3541
```
3642
git checkout -b type/one-line-description
3743
```
38-
3944
### Make and Test Changes
4045
1. Adhere to the project's established coding style for consistency.
4146
2. Make sure the code adheres to best practices.
@@ -60,7 +65,7 @@ git commit -m "one liner for the commit"
6065
• For PR name, follow this convention:
6166
``Module Name: One liner of changes``
6267

63-
• Don't forget to link the PR to the issue if you are solving one.
68+
• Don't forget to link the PR to the issue.
6469

6570
• Push your changes to GitHub:
6671
```

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# AI Platform
1+
# Kaapi
22

33
[![License: AGPL v3](https://img.shields.io/badge/License-AGPL%20v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)
4-
![](https://github.com/ProjectTech4DevAI/ai-platform/workflows/Continuous%20Integration/badge.svg)
5-
[![Code coverage badge](https://img.shields.io/codecov/c/github/ProjectTech4DevAI/ai-platform/staging.svg)](https://codecov.io/gh/ProjectTech4DevAI/ai-platform/branch/staging)
6-
![GitHub issues](https://img.shields.io/github/issues-raw/ProjectTech4DevAI/ai-platform)
7-
[![codebeat badge](https://codebeat.co/badges/dd951390-5f51-4c98-bddc-0b618bdb43fd)](https://codebeat.co/projects/github-com-ProjectTech4DevAI/ai-platform-staging)
8-
[![Commits](https://img.shields.io/github/commit-activity/m/ProjectTech4DevAI/ai-platform)](https://img.shields.io/github/commit-activity/m/ProjectTech4DevAI/ai-platform)
4+
![](https://github.com/ProjectTech4DevAI/kaapi-backend/workflows/Continuous%20Integration/badge.svg)
5+
[![Code coverage badge](https://img.shields.io/codecov/c/github/ProjectTech4DevAI/kaapi-backend/staging.svg)](https://codecov.io/gh/ProjectTech4DevAI/kaapi-backend/branch/staging)
6+
![GitHub issues](https://img.shields.io/github/issues-raw/ProjectTech4DevAI/kaapi-backend)
7+
[![codebeat badge](https://codebeat.co/badges/dd951390-5f51-4c98-bddc-0b618bdb43fd)](https://codebeat.co/projects/github-com-ProjectTech4DevAI/kaapi-backend-staging)
8+
[![Commits](https://img.shields.io/github/commit-activity/m/ProjectTech4DevAI/kaapi-backend)](https://img.shields.io/github/commit-activity/m/ProjectTech4DevAI/kaapi-backend)
99

1010
## Pre-requisites
1111

backend/README.md

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# FastAPI Project - Backend
1+
# Kaapi - Backend
22

33
## Requirements
44

@@ -27,13 +27,15 @@ $ source .venv/bin/activate
2727

2828
Make sure your editor is using the correct Python virtual environment, with the interpreter at `backend/.venv/bin/python`.
2929

30-
Modify or add SQLModel models for data and SQL tables in `./backend/app/models.py`, API endpoints in `./backend/app/api/`, CRUD (Create, Read, Update, Delete) utils in `./backend/app/crud.py`.
30+
Modify or add SQLModel models for data and SQL tables in `./backend/app/models/`, API endpoints in `./backend/app/api/`, CRUD (Create, Read, Update, Delete) utils in `./backend/app/crud/`.
3131

32-
## VS Code
32+
## Seed Database (Optional)
3333

34-
There are already configurations in place to run the backend through the VS Code debugger, so that you can use breakpoints, pause and explore variables, etc.
34+
For local development, seed the database with baseline data:
3535

36-
The setup is also already configured so you can run the tests through the VS Code Python tests tab.
36+
```console
37+
$ uv run python -m app.seed_data.seed_data
38+
```
3739

3840
## Docker Compose Override
3941

@@ -91,6 +93,22 @@ Nevertheless, if it doesn't detect a change but a syntax error, it will just sto
9193

9294
## Backend tests
9395

96+
### Setup Test Environment
97+
98+
Before running tests, create a test environment configuration:
99+
100+
1. Copy the test environment template:
101+
```console
102+
$ cp .env.test.example .env.test
103+
```
104+
105+
2. Update `.env.test` with test-specific settings:
106+
- Set `ENVIRONMENT=testing`
107+
- Configure a separate test database (recommended). Using a separate
108+
database prevents tests from affecting your development data.
109+
110+
### Run Tests
111+
94112
To test the backend run:
95113

96114
```console
@@ -133,7 +151,7 @@ Make sure you create a "revision" of your models and that you "upgrade" your dat
133151
$ docker compose exec backend bash
134152
```
135153

136-
* Alembic is already configured to import your SQLModel models from `./backend/app/models.py`.
154+
* Alembic is already configured to import your SQLModel models from `./backend/app/models/`.
137155

138156
* After changing a model (for example, adding a column), inside the container, create a revision, e.g.:
139157

0 commit comments

Comments
 (0)