Create and migrate your database with mix ecto.setup (check ./config/dev.exs for database name and password if needed)
Install Node.js dependencies with npm install inside the assets directory
mix run priv/repo/seeds.exs to load the database with some info (check admin name and password, you will needed)
Start ganache-cli in another terminal ganache-cli
Start Phoenix endpoint with mix phx.server
Enter admin credentials first to deploy the smart contract (top right corner)
Then go back to main page and create a user or use an existing one
TODO
At this moment we can deploy smart contracts, but we can't call the smart contract because we get a revert error on the VM. The code is written and should work but we can't test it, so one thing is to solve this big issue
If we log in with the admin, once we choose an event we will se a pop-up with all the users that are going to assist to the event
Si el usuario que hace login es el admin, este podrá desplegar un contrato, y al hacer click a un evento en el popup verá una lista con todos los asistentes de dicho evento recuperados de la red blockchain
Hacer una pagina de registro para los usuarios y que puedan meter nickname, email y password 2 veces. Además, se ha de verificar que el nickname NO tenga el símbolo @ y se deberá de verificar que email SI tenga el símbolo @. Por último, se verificará que la contraseña tenga mas de 8 caracteres y que estará bien escrita ambas veces
En la página inicial se ha de pedir el alias o correo y contraseña. También se ha de tener un botón para permitir a usuarios registrarse si no lo están aún