Giter VIP home page Giter VIP logo

running-simulation-system's Introduction

Real-time-Running-Location-Simulation-Application

Running Location Simulating system is a back end web real-time microservice system, using Java, Spring Boot, Spring Data, Spring Cloud, RabbitMQ, MongoDB, and H2

System disign:

Services:

  • RabbitMQ: process payment asynchronously for preventing a hard handling with too many orders

  • Eureka: services registration and discovery

  • Hystrix: services fall and gracefully degrade

  • Running location service : Frontend can use running location service to initialize all locations during startup

  • Running location simulator: Simulating running locations defined in JSON file and scheduled to run. Sending current location, including runningId, location lat, location logitude, runner status, speed, and heading to location distribution service

  • Running location distribution service: Publish current locations to locations queue in RabbitMQ

  • Running location updater: Consume current locations from locations queue in RabbitMQ, and setup Websocket connect and push locations to client

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Java JDK 1.8
Maven
Docker

Installing

Change your current Location to running-simulating-system

$ cd ../running-simulating-system

Create executable jar files

$ mvn clean install

Go into each module target folder and run jar file by run following Services' introduction order.

$ java -jar [jar file]

Running the tests

Automation Test

Integration test and MockMvc test run automatically while building jar files.

Manual Tests

Use Google App Postman and to test

Open eureka, rabbitMQ, and hystrix corresponding urls to confirm every microservice run correctly

running-simulation-system's People

Contributors

yufeiz avatar

Watchers

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