Coder Social home page Coder Social logo

yan-elena / server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from smartgreenhouse-22-23/server

0.0 0.0 0.0 838 KB

This repository encloses the components of the Server of SmartGreenhouse.

Home Page: https://smartgreenhouse-22-23.github.io/Report/

License: MIT License

JavaScript 0.97% Java 97.03% Kotlin 1.58% Dockerfile 0.41%

server's Introduction

SmartGreenhouse Application Server

This repository contains the various micro-services of which the SmartGreenhouse Application Server is composed.

API documentation

The different services implemented all have their own REST API, in particular the set of requests that can be made has been documented and formalized through OpenAPI specifications and the details can be viewed at the following link: SmartGreenhouse Server 1.0.0

Deployment instructions

For deployment, first it is necessary to specifically configure the different services, in order to do so it is necessary to read the different README.md files contained within each of the sub-modules.

Deploy using Docker

Once you have configured all the micro-services so that they can be launched on the host, following the instructions in their appropriate README.md. To follow this deployment option you must have installed on your host:

Once you have verified that you have everything you need to run the application, you need to move to the Server directory and launch the gradle shadows task, via the following command:

  ./gradlew shadowJar

At this point done if you decide to deploy the different services using docker and docker-compose you need to locate yourself in the Server directory and run the following command:

  docker compose up --build

Once this is done, it is necessary to wait a few moments for the different services to be instantiated.

If you want to terminate the execution of the micro-services you need to run the command:

  docker compose down --rmi all

Deploy without using Docker

Once you have configured all the micro-services so that they can be launched on the host, following the instructions in their appropriate README.md. To follow this deployment option you must have installed on your host:

Before executing the application you need to import the collection that you can find on the Server/collection directory inside mongodb in particular you have to: create a new database with name greenhouse and importing the greenhouse collection identified by the .json contained in the directory indicated before.

Once you have verified that you have everything you need to run the application, you need to move to the Server directory and launch the gradle shadows task, via the following command:

  ./gradlew shadowJar

At this point, for each micro-service, the corresponding .jar file has been made, and in order to run them, you need to move to the sub-module directory then in the /buld/libs directory and run the command:

  java -jar jar_name.jar

NOTE: replace jar_name.jar with the filename.jar in the directory indicated.

server's People

Contributors

annavitali avatar mariamengozzi avatar yan-elena avatar renovate[bot] avatar semantic-release-bot 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.