Giter VIP home page Giter VIP logo

parking-lot-microservices's Introduction

Parking App!

This app is based on a Micro-service Architecture which use an API gateway to perform operations again registered services.

I've used subdomain micro-services pattern.

Requirements

In order to get the system running, you should have installed:

  • MongoDB
  • PHP 7.x
  • Laravel
  • NodeJS
  • Composer
  • NPM

Run locally

There are 3 main services based on PHP (Vechiles & Tools services based on Laravel and parkinglogs on Lumen) and one API gateway based on NodeJS.

  • Run composer install on each vehicles, tools, parkinglogs folders in order to install Laravel framework and dependencies and npm install on api-gateway folder.
  • Copy .env.example to .env and update if necessary to match your MongoDB credentials.
  • Run php artisan serve on vehicles folder
  • Run php artisan serve --port=9000 on tools folder
  • Run php -S localhost:7000 -t ./public on parkinglogs folder.
  • Run npm start server on api-gateway folder

Security

Since this is an example, because of time and lack of user auth model, I've not included any auth method for the API gateway as well the services machine to machine communication.

On production, this system can setup an auth service to allow end-users to login and get an auth token in order to authenticate on API gateway, the micro-services communication should be based on machine-to-machine client-secret auth.

parking-lot-microservices's People

Contributors

m3chas avatar

Watchers

 avatar James Cloos avatar  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.