Skip to content

vincentmllr/document-platform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Disclaimer

This project was imported from the KIT GitLab and was created in a team of three students. My part was only the JavaScript frontend based on React. You can find the original project under https://git.scc.kit.edu/uhksn/peer.

Peer - Open Source Student Theses

Quick Start

Prerequisites

  • Install Node Modules
  • Start Docker Containers
  • Install and Setup MetaMaskPlugin
  • CORS unblock PlugIn

Install Node Modules

  1. Install yarn from https://yarnpkg.com/.
  2. Go to /app.
  3. Install requirements with: yarn install.

Start Docker Containers

  1. In /peer/app: yarn build
  2. In /peer: docker-compose up --build
How to start the app-Container seperate
  1. cd app
  2. yarn build
  3. docker build -t app .
  4. docker run -p 8081:80 -it app

Install and Setup MetaMaskPlugin

  1. Install MetaMask Browser-PlugIn
  2. Open PlugIn
  3. Add "Special RPS": Name: Ganache, URL: http://localhost:8545, ChainID: 1337
  4. Import Account: Enter private key: 0xb2c488b68a775c823263a436bbb8876c4ba64c4b21a0713c5fede5ad369ef89b
  5. If your private key shouldnt work: Get one account from the account list in "./Documentation.md"
  6. Then Copy first entry of list "private keys" in console
  7. Import Account: Enter private key from step before

Uploading Test Data

  1. On the index page: Click on file input and choose all the pdf in test_data.
  2. Click on upload test data.
  3. Wait till MetaMask prompted to submit each contract.
  4. Click on start listener.
  5. Wait till you see indexing pdf for each test thesis in console. This may take a while.

Making Changes

To test your changes in /app:
  1. In /app: yarn start
  2. Open //localhost:3000
To deploy your changes and test them in the docker environment:
  1. In /app: yarn build
  2. In /peer: docker-compose up --build
  3. Open //localhost:8081

Documentation

For further details see: "./Documentation.md".

About

Platform for sharing student theses based on distributed ledger technology

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages