GithubHelp home page GithubHelp logo

alethia-certificates.github.io's Introduction

Alethia

Alethia is a platform for blockchain enabled certificates using Ethereum's Rikeby Testnet and Ganache-CLI for testing smart contracts. The name "Alethia" stems from the Greek spirit of truth, something that this project values. The intent of this application is to allow alumni to upload their certificates and along with a signature ID provided by their school's dean in order to allow other users of Alethia to vote for their certificate to make it valid.

Link to the source code: https://github.com/jvan1997/alethia-certificates.github.io

Setup

  1. git clone https://github.com/jvan1997/alethia-certificates.github.io.git
  2. cd alethia-certificates.github.io/src
  3. npm install --save
  4. Download Metamask for your browser, and deposit some test tokens. (Link to download: https://metamask.io/)
  5. To deposit test tokens, request some from a test faucet (Instructions: https://medium.com/hellogold/adding-tokens-to-metamask-60b2fedd5bd9)
  6. In your terminal, type node server.js in one window and run the application on a different window.
  7. In your terminal, type ganache-cli in one window and run the application on a different window.
  8. In your terminal, type testrpc in one window and run the application on a different window. (Link to download: https://truffleframework.com/docs/ganache/quickstart)

Video Demo of the application

(Link to Video: https://youtu.be/Bqg9z-r6nUM)

Running the application

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.

npm run eject

Note: this is a one-way operation. Once you eject, you can’t go back!

Code Structure

Top level Alethia File layout

.
├── node_modules                    # The node module dependencies
├── public                          # Public files of Alethia
├── src                             # Source files of Alethia
├── tailwind.js                     # Tailwind js used to create tailwind.css/index.css
├── package.json                    # List of dependencies
├── server.js                       # Server file for Alethia
├── LICENSE
└── README.md

Alethia src File layout

.
├── ...
├── src                             
│   ├── Backstuff                   # Ethereum related files go in here
│   ├── css                         # CSS files go in here
│   ├── Gifs                        # Gifs used for README go here
│   └── Images                      # Images used for Alethia go here
└── ...

Important Files in Alethia

.
├── ...
├── src                             
│   ├── App.js                      # Loads the home page
│   ├── bar.js                      # Navigation bar for Alethia
│   ├── create.js                   # Create and Upload Certificate
│   ├── edit.js                     # Edit Uploaded Certificate
│   ├── deploy.js                   # Deploy Certificate onto Ethereum
│   ├── firebase.js                 # Set up Firebase information
│   ├── functions.js                # Functions of Firebase
│   ├── index.js                    # Routing for the React pages
│   ├── keys.js                     # Generates the key value pair
│   ├── login.js                    # Login Authenticator Component
│   ├── profile.js                  # Profile Page to Interact with Certificate
│   ├── signUp.js                   # Sign Up the User
│   ├── verify.js                   # Verify the Certificate onto Ethereum
│   └── vote.js                     # View one's status and verify other Certificates
└── ...

React Components

  • Creating a certificate:

    • Uploading a certificate:

  • Viewing a certificate:

    • Download:

    • Edit:

    • Vote:

    • Verify:

  • About Alethia

    • Team: Jonathan Van, Jenil Thakker, Vincent Diep
    • How it works: Architecture and design for Alethia

Ethereum Components

  • Deploying a certificate:

Dependencies

  • Firebase - Backend and Database storage.
  • React - Web Framework to render Alethia.
  • TailwindCSS - Styling Standard used for the Frontend.
  • Solidity - Programming Smart Contracts for Ethereum.
  • Truffle - Testing the blockchain based certificates.

Authors

  • Jenil Thakker - Implemented Ethereum Blockchain into Alethia
  • Vincent Diep - Integration with backend and frontend; Set up Server.
  • Jonathan Van - Designed and Implemented Frontend

Acknowledgments

  • Dr. Younghee Park
  • Professor Rod Fatoohi

alethia-certificates.github.io's People

Contributors

jenil04 avatar jvan1997 avatar lokasplash avatar

Stargazers

 avatar

Watchers

 avatar

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.