This is a WIP project on a Token-based Plasma Cash Implementations. This repo corresponds to API and Side-Chain in the 3-repo project.
API Side Chain - https://github.com/epord/Plasma-Cash-SideChain
Front End Client - https://github.com/epord/CryptoMons-client
Ethereum Contracts - https://github.com/epord/Plasma-Cash-RootChain
Migration to Typescript is being developed on.
- Install MongoDB using port
dbport(default is27017), and create a database with namedbname. - Create the file
.envin the root directory and add the following lines:PORT=8082 \\ Port of the API MONGO_URL=localhost \\ Database URL MONGO_PORT=`dbport` \\ Database Port MONGO_DB_NAME=`dbname` \\ Database Name BLOCKCHAIN_WS_URL = ws://localhost:7545 \\ Blockchain WebSocket URL AUTO_CHALLENGE = false \\ Flag for plasma-challenging the automatically - Make sure to check How to run the blockchain and follow the readme
- Make sure the Blockchain is running, follow the readme in this repo
npm installnpm start- To interact with the API check How to run the client and follow the readme