https://github.com/sirmaxx/focus-project
Mülakat için oluşturulmuş Python flask ve fastapi ile oluşturulmuş proje yönetim uygulaması
https://github.com/sirmaxx/focus-project
Last synced: 2 months ago
JSON representation
Mülakat için oluşturulmuş Python flask ve fastapi ile oluşturulmuş proje yönetim uygulaması
- Host: GitHub
- URL: https://github.com/sirmaxx/focus-project
- Owner: SirmaXX
- Created: 2022-09-19T18:55:46.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-05T04:01:02.000Z (7 months ago)
- Last Synced: 2025-01-28T22:25:41.658Z (4 months ago)
- Language: HTML
- Homepage:
- Size: 57.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Focus-Project
Python flask ile oluşturulmuş proje yönetim uygulaması## Api Nasıl çalışır
İlk olarak api ve veritabanı servislerini oluşturalım.sudo docker-compose build db
sudo docker-compose up dbArdından olarak api ve veritabanı servislerini oluşturalım.
sudo docker-compose build api
sudo docker-compose up api## Web uygulaması nasıl çalışır
sudo docker-compose build api
sudo docker-compose up api## APİ için çalışan requestler
### Users (Kullanıcılar için requestler)
-----------------------------------------
```
curl --location --request GET 'http://0.0.0.0:5001/users/'curl --location --request GET 'http://0.0.0.0:5001/users/1'
curl --location --request POST 'http://0.0.0.0:5001/users/add' \
--header 'Content-Type: text/plain' \
--data-raw '{
"username":"admin",
"password":"admin"
}'curl --location --request PUT 'http://0.0.0.0:5001/users/update/1' \
--header 'Content-Type: text/plain' \
--data-raw '{
"username":"admin",
"password":"admin123"
}'curl --location --request DELETE 'http://0.0.0.0:5001/users/delete/2'
```
### Projeler için requestler
-----------------------------------------
```
curl --location --request GET 'http://0.0.0.0:5001/manager/projects/'curl --location --request GET 'http://0.0.0.0:5001/manager/projects/1'
curl --location --request POST 'http://0.0.0.0:5001/manager/projects/add' \
--header 'Content-Type: text/plain' \
--data-raw '{
"name":"webtasarımı"
}'curl --location --request PUT 'http://0.0.0.0:5001/manager/projects/update/2' \
--header 'Content-Type: text/plain' \
--data-raw '{
"name":"webtasarımı1son",
"status":false
}'curl --location --request DELETE 'http://0.0.0.0:5001/manager/projects/delete/12'
```
### Job(işler) için requestler
-----------------------------------------
```
curl --location --request GET 'http://0.0.0.0:5001/manager/jobs/'curl --location --request GET 'http://0.0.0.0:5001/manager/jobs/4'
curl --location --request POST 'http://0.0.0.0:5001/manager/jobs/add' \
--header 'Content-Type: text/plain' \
--data-raw '{
"titlee":"deneme",
"content":"denemeprojesi",
"status":2,
"project_id":2
}'curl --location --request PUT 'http://0.0.0.0:5001/manager/jobs/update/7' \
--header 'Content-Type: text/plain' \
--data-raw '{
"title":"deneme",
"content":"denemeprojesi bitti",
"status":2,
"project_id":2
}'curl --location --request DELETE 'http://0.0.0.0:5001/manager/jobs/delete/7'
```### Comment(Yorumlar) için requestler
-----------------------------------------
```
curl --location --request GET 'http://0.0.0.0:5001/manager/comments/'curl --location --request GET 'http://0.0.0.0:5001/manager/comments/7'
curl --location --request POST 'http://0.0.0.0:5001/manager/comments/add' \
--header 'Content-Type: text/plain' \
--data-raw '{
"comment":"deneme",
"job_id":3
}'curl --location --request PUT 'http://0.0.0.0:5001/manager/comments/update/8' \
--header 'Content-Type: text/plain' \
--data-raw '{
"comment":"deneme bitti ",
"job_id":4
}'curl --location --request DELETE 'http://0.0.0.0:5001/manager/comments/delete/2'
```
### Comment(Yorumlar) için requestler
-----------------------------------------
```
curl --location --request GET 'http://0.0.0.0:5001/manager/status/'curl --location --request GET 'http://0.0.0.0:5001/manager/status/1'
curl --location --request POST 'http://0.0.0.0:5001/manager/status/add' \
--header 'Content-Type: text/plain' \
--data-raw '{
"status_name":"basladı"
}'curl --location --request PUT 'http://0.0.0.0:5001/manager/status/update/2' \
--header 'Content-Type: text/plain' \
--data-raw '{
"status_name":"baslangıc1"
}'curl --location --request DELETE 'http://0.0.0.0:5001/manager/status/delete/2'
```
# MİMARİ YAPI1. Api
* Lib Folder
- mail2.py
- model.py
* Routers Folder
- jobs.py
- users.py
* Dockerfile
* main.py
* requirements.txt
2. Webapp
* Docs Folder
- app.html
* static Folder
* Templates
- about.html
- index.html
- login.html
- register.html
* app.py
* Dockerfile
* requirements.txt
3. docker-compose.yml