GithubHelp home page GithubHelp logo

homework-4-te-4's Introduction

Database kurulumu

Gerekli toolların kurulumu:

dotnet tool install --global dotnet-ef

Docker ayağa kaldırma (Solution altında çalıştırılmalı):

docker compose up -d

Migrationlar ekleme ve database update (API projesinin altında çalıştırılmalı):

dotnet ef migrations add AddTables -v

dotnet ef database update -v

Database admin panel erişimi

Postgres

Docker ayağa kaldırıldıktan sonra localhost:5050 ile admin paneline erişilir.

email: [email protected]
password: toor

Servers'e sağ tıklayarak Create > Server ile server oluşturma ekranında "General" ve "Connection" sekmelerinden aşağıdaki ayarlamalar yapılır.

name: ecommerce

host name: postgresql
port: 5432
username: postgres
password: toor

Mongo

Docker ayağa kaldırıldıktan sonra localhost:8081 ile admin paneline erişilir.



4. Hafta Ödev

Basit bir e-ticaret apisi geliştirin.

  • Ürün, kullanıcı ve sipariş tablolarınız olsun.
  • Ürün ve sipariş ekleme seçeceğiz ilişkisel bir veritabanına dapper kullanarak yapılacaktır.
  • Ürün ekleme ve sipariş oluşturma için birer restful api yapılmalıdır.
  • Sipariş oluşturulduktan sonra siparişin özet bilgisinin yer aldığı bir kayıt mongodb ye atılmalıdır.(siparişi veren kullanıcı, siparişteki ürünlerin bilgileri vb.)
  • Siparişleri listelemek için hem kullanıcı özelinde hem de id özelinde mongodb deki sipariş bilgilerini gösteren bir grpc servis geliştirin.(restful da olabilir.)

#Bonus:

  • unit testleri yazın.
  • sipariş oluşturma aşaması için integration test yazın
  • CQRS ve meditaor pattern kullanın

homework-4-te-4's People

Contributors

alprsln avatar cagdem avatar mesadunal avatar cnsukahveci avatar eyyigitemre 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.