YemekSepeti Python Web Development Bootcamp Final Projesi
Postman collection ile ya da auth servisleri için localhost:5000 restaurant ve customer servisleri için localhost:5000/api ile swagger dökümanlarına erişilebilir.
Projeyi klonlayın
git clone https://github.com/aysberna/burgerzilla.gitProje dizinine gidin
cd burgerzillaVirtual environment oluşturun
python -m venv env
source env/bin/activate # Linux-MacOS içinGerekli paketleri yükleyin
pip install -r requirements.txtÖn tanımlı verileri yükleyin (Kullanıcı, restoran, menu, ürünler) user-> email: email='[email protected]', 'password:12345678' restaoran-> email='[email protected]', password='12345678' ürün-> name='Bombili burger', menu_id=1 menü-> name='Dombili burger menu', restaurant_id='1'
flask initialvaluesSunucuyu çalıştırın
flask runTestleri çalıştırın
flask testProjeyi klonlayın
git clone https://github.com/aysberna/burgerzilla.gitProje dizinine gidin
cd burgerzillaDocker ile projeyi build edin
docker build -t burgerzillalatest .Postgresql bağlantısı için compose yapın
docker compose up --build webFlaskın çalıştığı adresten (localhost) dökümanlara ve servislere erişebilirsiniz.
Uygulamanın çalışması esnasında ve Api'lerde hataya düşülen bir durum olduğunda ana dizinde log dosyası oluşacaktır ve burgerzilla.log isimli kayıtlar düşecektir.
burgerzilla
├─ .env
├─ .gitignore
├─ README.md
├─ YemekSepeti.postman_collection.json
├─ app
│ ├─ __init__.py
│ ├─ api
│ │ ├─ __init__.py
│ │ ├─ customers
│ │ │ ├─ __init__.py
│ │ │ ├─ controller.py
│ │ │ ├─ dto.py
│ │ │ ├─ service.py
│ │ │ └─ utils.py
│ │ ├─ restaurants
│ │ │ ├─ __init__.py
│ │ │ ├─ controller.py
│ │ │ ├─ dto.py
│ │ │ ├─ service.py
│ │ │ └─ utils.py
│ │ └─ user
│ │ ├─ __init__.py
│ │ ├─ controller.py
│ │ ├─ dto.py
│ │ ├─ service.py
│ │ └─ utils.py
│ ├─ auth
│ │ ├─ __init__.py
│ │ ├─ controller.py
│ │ ├─ dto.py
│ │ ├─ service.py
│ │ └─ utils.py
│ ├─ extensions.py
│ ├─ models
│ │ ├─ __init__.py
│ │ ├─ menu.py
│ │ ├─ order.py
│ │ ├─ order_detail.py
│ │ ├─ product.py
│ │ ├─ restaurant.py
│ │ ├─ schemas.py
│ │ └─ user.py
│ └─ utils.py
├─ config.py
│ └─ texts.py
├─ defaults.txt
├─ requirements.txt
├─ runservice.py
└─ tests
├─ __init__.py
├─ test_auth_api.py
├─ test_config.py
├─ test_restaurant_api.py
├─ test_restaurant_model.py
├─ test_user_api.py
├─ test_user_model.py
└─ utils
├─ __init__.py
├─ base.py
└─ common.py
