Skip to content

Arquisoft/Agents_i2a

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Agents_i2a

Codacy Badge Build Status codecov Codefresh build status

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.

17-18 Authors

Previous 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)

Get started with the application

1. Software needed

You will need to have installed in your computer the following software products: - Maven

2. Run the project

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.

3. Insert documents in MongoDB database

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.

4. Start using the application

Open http://localhost:8080/ on you navigator and login to use the application.

5. Test the application

To run the tests just use mvn test. No data in the database is needed to run them.

More information

MongoDB (with mLab)

This project uses MongoDB as the database. You can check how to use it on

Jasypt

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/

REST requests

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>