Giter VIP home page Giter VIP logo

microservice-product's Introduction

Hello, I'm Navid Mansouri and this is snap pay test project.

As you can see this is lumen project and I implemented jwt authorization for my app in the other app. I also provided swagger api documentation you can check /api/documentation. I used Repositories, Facades, Services, Observers and Request classes in these two apps. Please once you cloned the project make database and config it in .env, run these commands : 1.composer install 2.php artisan migrate 4.php -S localhost:8000 -t public Now you can use postman to test this app. Postman header configs : Content-Type application/x-www-form-urlencoded Authorization Bearer

I implemented observers and job to get models changes and publish in message broker. So for authentication in this app you need to run both projects at the same time and run command on product app and register your user on auth app and get token. rabbitmq will publish changes on user model and here app will create the user too. so you can use your token on this app too. please check .env and config/queue.php to configurate your rabbitmq server. I used https://www.cloudamqp.com/ free services. You can use it too.

I hope you have fun using this app.

Regards, Navid Mansouri [email protected] 09139071587

microservice-product's People

Contributors

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