Skip to content

An E-Book trading system based on the ERC-1155 standard.

License

Notifications You must be signed in to change notification settings

dodo920306/ohara

Repository files navigation

Ohara Protocol

image

Overview

This repository contains the source code of the Ohara Protocol, an E-Book trading system based on the ERC-1155 standard running on the Arbitrum blockchain.

It allows publishers to mint their E-Books as NFTs and sell them to buyers. The system utilizes the Arbitrum chain for its high throughput and low transaction fees, providing a seamless and efficient E-Book trading experience for all parties involved.

Every E-Books' metadata will be uploaded to Arweave, and every E-Books' content will also be uploaded to Arweave but only after being encrypted by AES. The key will be saved by the server so that whenever E-Book owners want to read the book, they can read it after the server decrypts it. This way, every book data is saved forever and no one but its owners can read it.

You can see more details on https://100.adi.gov.tw/ahvs1?id=62.

This project is still under development, and we welcome any suggestions for improvement. You can help us identify issues by using the "Issues" tab above. Your feedback is valuable and we appreciate your contribution to the project's development.

Prerequisites

You should have well functional truffle, docker, and docker-compose installed on your computer.

Installation

Please clone this repository and run

$ npm install

under the project root directory.

Then, put the MNEMONIC and INFURA_KEY into the .env file

MNEMONIC = "..."
INFURA_KEY = "..."

Now, you can use truffle to develop and test this project.

You can choose the migration you want from migrationslib and copy it to the migrations file.

For example, you can copy migrationslib/1_deploy.js to the migrations file, and use

$ npx truffle migrate --network goerli

to deploy the contract and proxy on Arbitrum goerli.

Then, config django-on-docker/.env.dev, .env.prod, and .env.prod.db according to the samples and what your need.

Finally, use

$ cd django-on-docker && docker-compose up -d --build

to run the server.

You should see the website on your port 80 now.

About

An E-Book trading system based on the ERC-1155 standard.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published