GithubHelp home page GithubHelp logo

laravel_adv's Introduction

Proje Hakkında

Basit bir reklam uygulaması olarak geliştirilmiştir. Hem web, hem api tarafında rotaları oluşturulmuştur.

Laravel sail kurulu olduğundan docker ile çalıştırılabilir.

Install ve Çalıştırma

git ssh ile bilgisayarınıza yüklemek için

git clone [email protected]:bilginnet/laravel_adv.git

ve

cd laravel_adv

Enviromenter için .env.example dosyasını .env olarak kopyalamanız gerekmekte.

cp env.example env

Projede laravel sail yüklü olduğundan docker ile hızlıca ayağa kaldırmak için

make up

Son olarak tabloların oluşumu için

make migrate

Artık uygulamamız hazır vaziyette.

Herhangi bir tarayıcıda localhost:8080 yazarak projeyi çalıştırabiliriz.

Unit Test

Unit testi çalıştırmak için

make test

komutunu kullanabilirsiniz.

API Rotalar

  • POST => localhost:8080/api/login

  • email

  • password

  • GET => localhost:8080/api/advertising

  • platform: "Tiktok",

  • start_date: "01-10-2023"

  • end_date: "30-10-2023"

  • POST => localhost:8080/api/advertising

  • platform:"Tiktok",

  • impressions:10

  • clicks:15

  • spend:100

  • revenue:20

Öncelikle web rotası üzerinden register olmanız gereklidir. Sonrasında api/login tarafında istek atıp dönüş aldığınız token değerini bearer token olarak diğer api rotalarına istek atmanız gereklidir.

Notlar:

Laravel fortify kullanılmış olmasına karşın forget-password, verify-email gibi aksiyonlar test edilmemiştir. Login ve Register kısımlarıyla ilgili testler yapılmıştır.

laravel_adv's People

Contributors

bilginnet 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.