Git Product home page Git Product logo

elixirrecords's Introduction

Steps to Run the Application

  • Install dependencies with mix deps.get
  • 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

elixirrecords's People

Contributors

forgis98 avatar paulapousa avatar

Watchers

Ángel Herranz avatar  avatar  avatar

elixirrecords's Issues

Pagina para el admin

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 pagina de registro

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

Popup y Blockchain

Tras seleccionar un evento se mostrará el hash de la transacción en un pop-up

Hacer una nueva página inicial

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

Crear nuevas tablas en la Base de Datos

Crear una tabla de usuarios con:

  • Alias UNICO
  • Correo UNICO
  • Contraseña cifrada

Crear una tabla para eventos con:

  • Nombre del evento
  • Descripción del evento

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.