Skip to content

asw-i3a/agents-service

 
 

Repository files navigation

I3A Agents Service

Status
circleCI CircleCI
code coverage codecov
code quality Codacy Badge
latest build Docker Badge

Welcome to our agents service

This micro-servide forms part of platform called GestUsers, if you don't know about it, we encourage you to see this other repo first.

Here your will find the source code of a micro-service dedicated to write / read operations in a database of agents. An agent is is a person, sensor or entity that can submit incidents in to the system.

API Documentation: https://github.com/asw-i3a/agents-service/wiki/API-Documentation

Package

Group Artifact
io.github.asw.i3a agents.service

Authors

  • Herminio García González (@herminiogg)
  • Jose Emilio Labra Gayo (@labra)
  • Jorge Zapatero Sánchez (@JorgeZapa)
  • Damián Rubio Cuervo (@DamianRubio)
  • Antonio Nicolás Rivero Gómez (@Lan5432)

2018 - Maintainers

Contributing to this service

Contributions to the project are welcomed and encouraged! Please see the Contributing guide.

Getting Started

These instructions give the most direct path to work with this module.

System Requirements

As the project is developed in java macOS, Windows and Linux distributions are natively supported. Of course you will need the latest JDK available. Also, depending on where are you going to run the database, you will need internet connection or MongoDB installed and running on your machine.

Java Development Kit (JDK)

A Java Development Kit (JDK) is a program development environment for writing Java applets and applications. It consists of a runtime environment that "sits on top" of the operating system layer as well as the tools and programming that developers need to compile, debug, and run applets and applications written in the Java programming language.

If you do not has the latest stable version download you can download it here.

MongoDB

This project uses MongoDB as the database. You can check how to use it on MongoDB install. By defatult a dummy server is up and running, it´s configured at the file applications.properties. Change this configuration as needed, should not interfeer with the module itself.

Jasypt

This project uses Jasypt to encrypt the passwords. You don't need to download it as far as its dependency its imported from maven central, but you can check it here.

Getting Sources

First create a directory for all of the project sources:

mkdir agents_service
cd agents_service

Cloning repository

git clone https://github.com/asw-i3a/agents-service.git

Building the service

As the project was created on eclipse this is the best way to build and run the sources. The steps are the following:

  1. Open Eclipse IDE.
  2. Select import existing Maven Project.
  3. Go to src/main/java/main/Application.java.
  4. Right click over the class and Run as Java Application.

Up to this point the module should be up and running in the address localhost:8080.

Or you can use mvn install to fully build the module.

Working with this module

Running the service

To run the module you need to set the repository as working directory and run the following statement mvn spring-boot:run.

About

A micro-service for managing agents

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%