Coder Social home page Coder Social logo

burgerzilla's Introduction

BurgerZilla

YemekSepeti Python Web Development Bootcamp Final Projesi

API Kullanımı

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.

Bilgisayarınızda Çalıştırın

Projeyi klonlayın

    git clone https://github.com/aysberna/burgerzilla.git

Proje dizinine gidin

    cd burgerzilla

Virtual environment oluşturun

    python -m venv env
    . venv/bin/activate # Windows için
    source env/bin/activate # Linux-MacOS için

Gerekli 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 initialvalues

Sunucuyu çalıştırın

    flask run

Testleri çalıştırın

    flask test

Dockerda Çalıştırın

Dockerda projeyi oluşturun

    docker build -t burgerzillalatest .

Postgresql bağlantısı için compose yapın

    docker compose up --build web

Flaskın çalıştığı adresten (localhost) dökümanlara ve servislere erişebilirsiniz.

Veri tabanı şeması

Burgerzilla_models

Dizin Yapısı

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

Proje Yemeksepeti Bootcamp dersleri ve İbrahim Ediz'in oluşturdugu örnek projeler baz alınarak geliştirilmiştir.

burgerzilla's People

Contributors

aysberna avatar

Stargazers

mehmet berkay avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.