GithubHelp home page GithubHelp logo

my_airport's Introduction

README

This is a test airport project with the following technical task:

There is an airport with one runway. The controller is provided with an interface that allows you to send the plane to take off. The interface allows you to send several planes to take off simultaneously. The take-off itself takes 10+ seconds. The interface displays the current status of the aircraft (departed, awaits departure (if several have been sent for takeoff), in the hangar), as well as the history of the status change. Requirements:

  • front-end update in real time;
  • a separate microservice is engaged in take-off, which counts a random number of seconds and returns a signal that the plane took off Wishes:
  • use NoSQL database for storage.

Getting started

You need to have installed ruby v2.7.0, rails v6.0.3, MongoDB (mongoid 7.1.2), RabbitMQ (bunny 2.15.0).

After cloning the repository use

bundle install

command in console.

Before launching the app, make sure that RabbitMQ is running. Run this command in another terminal, depending of the path where RabbitMQ is installed on your machine:

rabbitmq-server

To run microservice takeoff_processing.rb, run in another terminal:

ruby takeoff_processing.rb

Then you are ready to launch the main airport app, using the command:

rails s

The main functionality has the following address (if you run locally on your machine):

http://localhost:3000/airports 

my_airport's People

Contributors

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