Giter VIP home page Giter VIP logo

voogle's Introduction

CI-CD

Voogle

Voogle is an open source project, maintained by Sogilis, that implements good pratices in cloud native application development, with a high degree of cybersecurity requirements.

For now, Voogle consists in a micro-service broadcasting and sharing video streams application. It is also used as a demonstration medium for the SquareScale platform.

This version is modified by RusAD for personal use and doesn't strive to represent best practices

Architecture overview

overview

Needed tools

How to run the environment locally

To start Voogle on your machine, you need services (for now): webapp, api, encoder, gray-server-transformer, flip-server-transformer, a S3-like, a Rabbitmq and a Mariadb.

You don't have to set manually S3_HOST unless you know what you are doing.

  • Before starting Voogle with the Docker Compose, a .env is necessary. You can either fill one by hand based on the .env.template file or use the make generate-env-file command.
  • You can start all backend services with make start_all_services.
  • S3-like (MinIO), Rabbitmq and Mariadb will be launched first following docker-compose-external.yml file
  • MinIO that is a service that have the same API as S3. The API will be available on the port 9000 and the console one the port 9001.
  • The Rabbitmq server will be available on the port 5672 and the console one the port 15672.
  • Mariadb can be accessed using docker with command exec -it <mariadb_container_id> mysql -u root -p
  • API, encoder, gray-server-transformer and flip-server-transformer will then be launched following docker-compose-internal.yml file.
  • Observability (grafana, prometheus, node exporter) are available, you can start all services and observability with make start_all_services_and_observability
  • Finally, you can start the webapp (/src/webapp) with npm run serve to start the VueJS development server.
  • Credentials for Voogle account can be found in the .env file as USER_AUTH and PWD_AUTH environment variables.
  • All credentials for MinIO, Rabbitmq and Mariadb can be found in the .env file.
  • Note that you can launch only external services (means S3-like (MinIO), Rabbitmq and Mariadb) with make start_external_services. Then, you can launch each internal services (means API, encoder, gray-server-transformer, flip-server-transformer) from src/ with the make run-dev-<service_name> (example: make run-dev-api).
  • All running services can be stopped and cleaned up with make stop_services

Observability

How to install protobuf generator

  • Debian/Ubuntu: apt install protobuf-compiler
  • Fedora: dnf install protoc-gen-go

Doc API file (Swagger/Openapi)

Install tool

  • go get -u github.com/swaggo/swag/cmd/swag
  • go get -u github.com/swaggo/http-swagger
  • go get -u github.com/alecthomas/template

Generate doc

  • cd src/cmd/api/
  • swag init -g main.go or make generate-docs

We use GitHub Pages to display our documentation. Before merging, please rebase on main and ensure the files are up to date using the above commands. Once the merge request is accepted, you can access https://sogilis.github.io/Voogle/ to check the documentation.

Visual Studio Code

Configuration for multi-module workspaces

  • .vscode/setting.json
    {
      "go.useLanguageServer": true,
      "gopls": {
        "experimentalWorkspaceModule": true
      }
    }

voogle's People

Contributors

dependabot[bot] avatar isilud avatar tezno avatar raboliotlegris avatar clerysem avatar rodolphechartier avatar rusad32 avatar vlamy 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.