Skip to content

Set up the environment

Luis Emilio Velasco Sánchez edited this page Feb 18, 2016 · 2 revisions

Environment guide

The aim of this page is to serve as a simple guide to set up the development environment of the application. This tutorial is thought for Windows users. If needed, the guide could be adapted for other users.

MySQL installation

  1. Download the installer from here.
  2. Run the installer with all the default options.
  3. When you are asked to put the MySQL Root Password use root. (This is only for local development, not for production).
  4. Be aware that everything is okey and the server is started.
  5. Download the MySQL Workbench from here.
  6. Run the installer with all the default options.
  7. Once the installer finish, the program will start. Log in localhost.
  8. Create a new schema called voters

## Run the project First of all, open a CMD in the project root and run:

votersI2> mvn install

Then, to set up the REST API you should go to voter-access folder and run:

votersI2\voter-access> mvn spring-boot:run

The server will be started at localhost:8080.

If you also want to start the web interface, you just need to open a new CMD, go to web-app folder and run:

votersI2\web-app> mvn spring-boot:run

This command starts the application at localhost:8888.