Giter Site home page Giter Site logo

vteam-server's Introduction

VTEAM - Database, server and REST API

Scrutinizer Code Quality Code Coverage Build Status

Introduction

Welcome to our repository! This subsystem includes an Express.js and Node.js server that delivers data from a MariaDB database, enriched with mock data, and features a REST API for data access. It serves as a submodule of the VTEAM root repository, available here, representing the larger ecosystem of our project. This comprehensive system encompasses various components, such as the bike brain, server and API, an administrative frontend GUI, a user-oriented frontend GUI, and a progressive web app for users.

Prerequisites

To run the server, Docker and Docker Compose are essential. If you haven't installed Docker and Docker Compose, you can obtain them from Docker's official website. Docker Desktop conveniently bundles Docker Compose, Docker Engine, and Docker CLI – all essential tools for Docker Compose.

One of Docker's key advantages is its handling of dependencies, such as Node.js and MariaDB. By using Docker, you avoid the need to install these dependencies on your machine, as they are seamlessly integrated within the Docker environment.

Getting started

To kickstart the system, you'll need to create a .env file. Refer to the .env.example file located in the repository's root for guidance on the necessary environment variables. Feel free to use the provided example values.

Once you're ready, initiate the Docker daemon on your computer, then head to the repository's root directory and execute the following command to enter docker development environment:

./init.bash dev

This command launches three Docker containers: two MariaDB containers (one housing a test database) and one server container. After all containers are up and running, with the MariaDB containers marked as 'healthy,' you'll enter the server container. To evaluate the server and browse the API documentation, visit localhost:1337/v1/docs.

Exiting the system is straightforward. Simply type exit while in the server container to halt the containers and remove them from your system.

The docker production environment of this repo, which is mainly used with the rest of the system, can be started with:

./init.bash prod

To shut down and remove the production environment services, use ./init.bash down.

GitHub Secrets

For optimal GitHub Actions performance, you'll need to configure some variables in your GitHub secrets. Ensure these variables mirror the names and values found in the .env file at the repository's root.

vteam-server's People

Contributors

julialind avatar idaloof avatar kiwijos 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.