Coder Social home page Coder Social logo

darksonic37 / fleetit Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 18.12 MB

Fleetit is a bike tracking web application where one can monitor and be alerted about speed, temperature, CO2 levels, etc. of bikes on a live-updated map

Java 27.11% Gherkin 0.97% Shell 8.48% HTML 2.51% JavaScript 27.61% CSS 15.55% Python 14.59% Dockerfile 3.19%
docker docker-swarm kafka springboot postgresql nginx react tdd rest nodejs websockets

fleetit's Introduction

fleetit

Fleetit is a bike tracking web application where one can monitor and be alerted about speed, temperature, CO2 levels, etc. of bikes on a live-updated map. It was developed as an exercise in Software Engineering where various technologies and methodologies (Docker, Docker Swarm, Kafka, Zookeeper, PostgreSQL, ELK, Metricbeat, NGINX, React, SpringBoot, REST, TDD, NodeJS, WebSockets, Python) come into play in an event-driven architecture.

The entire project is designed to run on a Docker Swarm cluster (enabling easy scalability, replication, zero-downtime deployments, fault tolerance, load balancing) with separate development and production stacks that was eventually deployed on 5 DigitalOcean virtual machines for a proof-of-concept production setup.

Development

Build all images:

./build.sh

Initialize the cluster:

docker swarm init

Deploy the development stack:

docker stack deploy -c development.yml fleetit

Remove the stack:

docker stack rm fleetit

Leave the cluster:

docker swarm leave

Production

Configure the DigitalOcean firewall on all nodes of the cluster to allow Docker Swarm traffic:

./digitalocean_firewall.sh -m
./digitalocean_firewall.sh -w

Initialize the cluster from a manager node:

docker swarm init

Join the cluster on all worker nodes:

docker swarm join --token $TOKEN $MANAGER:2377

Deploy the production stack on the cluster from a manager node:

docker stack deploy -c production.yml fleetit

Documentation

cd docs/src/
docker run --rm -v "$PWD:/gitbook" -p 4000:4000 billryan/gitbook gitbook serve
cd docs/src/
docker run --rm -v "$PWD:/gitbook" billryan/gitbook gitbook build
rsync -crvz --rsh='ssh' --delete-after --delete-excluded ./_book/* [email protected]:public_html/docs

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.