Git Product home page Git Product logo

steam-nuage's Introduction

Project: Steam-Nuage

Prerequisites

In order to run, you must fulfill the following requirements:

  • Java 21+
  • Maven 3.8+
  • Docker engine 25+
  • Docker Compose 2.23+

Running the application in development environment

Setting up ENV

This step needs to be done only once.

First of all, you need to edit the .env file inside the docker folder to set up your own variable.

Starting the development environment

In order to start the development environment, you need to start the docker containers using the following command:

docker compose -f docker/docker-compose-DEV.yml up

To stop id, you need to run:

docker compose -f docker/docker-compose-DEV.yml down

To start the application, it depends on your choice if IDE, refer to its documentation.

Accessing and setting up PgAdmin

For development, the application comes with a bundled PgAdmin instance.

The instance is running under http://localhost:5050.

The default credentials are:

Once you are connected to PgAdmin UI you can add the local database. To do so, in the Connection tab, provide the following information:

  • Host name / address: database
  • Username: Refer the value of the key DB_USER in the .env file
  • Password: Refer the value of the key DB_PASSWORD in the .env file

Deploy

Every command describe in this chapter are performed from the root directory of the project.

Clearing previous deployment

If you previously deployed the application, do the following:

Shut down the running instance:

docker compose -f docker/docker-compose.yml down

Delete the current Docker image:

docker image rm docker-steam-nuage

Building the new version

In order to build the new version of the application, compile it using maven:

mvn -B package --file pom.xml

Run the new version

Finally, to run the new version, execute the docker compose file:

docker compose -f docker/docker-compose.yml up -d

Finally, access the API documentation at : http://localhost:5050/swagger-ui/index.html

Troubleshooting

A docker command failed to execute

Depending on the configuration of the system, you might need to run the docker's command with sudo.

The application crashed at startup

Make sure that every needed environments variables are set in the .env file.

Alternatively, if the latest version introduced changes to the local database, you might need to erase the docker volume.

docker volume rm docker_steam_nuage_data

This operation will delete all the data.

steam-nuage's People

Contributors

mickbuilder 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.