frouioui / dashboard-epitech

ReactJS frontend to create a dashboard using multiple services such as student grade, weather, stocks and so on. The website depends on a micro service architecture and has multiple backend services coded in Golang, Python and NodeJS. The website runs on a GCP environnement.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dashboard Epitech

Authors

Architecture (the big pitcure)

Our project is divided into multiple micro-services.

This architecture allows us to work faster and code API that are scalable and that we can easily manage.

This kind of architecture (micro-services) is used more and more by tech companies. It allows :

  • Better team organisation.
  • Less frustration between teams.
  • Less errors in code and production environment.
  • The ability to code with different programming language, making it easier to use the right programming language for the right situation.

The services

Production deployement

Our project uses docker-compose and google cloud platform.

Docker compose

Docker compose is used for local environment only.

To build the project: $> docker-compose build

To run the project: $> docker-compose up

Google Cloud Platform

Google Cloud Platform is uses for production environment only.

Every time a push or a pull requested is validated by Travis CI all the services are pushed to the productions servers.

Each push create a new versions of the APIs and the Frontend service.

The production environment dashboard is accessible at: https://pedafy.com

Frontend

The frontend (main application) is available at http://localhost (on local env).

We used ReactJS. Why did we?

We decided to use ReactJS beceause it is a framework used by more and more companies. It is a nice assets to know how to use this technology when looking for a job. Also, it is a easy framework and does not require a lot of work to get around it.

Bonuses

  • Micro services Architecture.

    • 10 independant services.
    • 12 factors app.
    • Each API respects ISO rules and follow the Richardson Maturity Mode.
  • Deploiement

    • Travis CI deploys automatically to Google App Engine every single services
  • Database

    • Usage of MySQL database
    • PhpMyAdmin
  • Environment

    • Two environment (Dev and Prod)
    • Production servers
      • 1 server for each service/API (beside PMA and SQL) for a total of 9 servers
      • Code automatically pushed and run on servers for every push on branch master
      • Managment of DNS
      • SSL certificat
      • Multiple routes (defines at the root of the repo './dispatch.yaml')
  • GitHub

    • Huge usage of issue
    • Huge usage of PR
    • Daily meeting reports

About

ReactJS frontend to create a dashboard using multiple services such as student grade, weather, stocks and so on. The website depends on a micro service architecture and has multiple backend services coded in Golang, Python and NodeJS. The website runs on a GCP environnement.


Languages

Language:JavaScript 69.6%Language:CSS 18.7%Language:Go 7.7%Language:Python 1.9%Language:HTML 1.0%Language:Dockerfile 0.9%Language:Shell 0.1%