Agents module (part of final Inci_i2a module). Below we give you the instructions to run this module in your local host. Otherwise, if you want to run it with the complete application and deploy it online, you should follow the instructions given in the Inci_i2a GitHub page.
- 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)
You will need to have installed in your computer the following software products: - Maven
Download the project and go to its directory, open there a command prompt and execute:
> mvn spring-boot:run
Now the application is running if all it's correct.
As this module is currently working along other modules, in order to have an agent to test the application, you should run the
[Loader](https://github.com/Arquisoft/Loader_i2a) module, which will add the agents you specify in a xls file to the database that this module uses.
Open http://localhost:8080/ on you navigator and login to use the application.
To run the tests just use mvn test
. No data in the database is needed to run them.
This project uses MongoDB as the database. You can check how to use it on
This project uses Jasypt to encrypt the passwords. You don't need to download it, but you can check it at: http://www.jasypt.org/
In order to use the user credentials to obtain your data, you can send a POST request to http://localhost:8080/user. The data in this request can come as:
- JSON:
{"login": user, "password": password, "kind": agent's kind}
- XML:
<data>
<login>yourLogin</login>
<password>yourPassword</password>
<kind>yourKind</kind>
</data>