Mutual rating app on holochain network
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Ensure holochain-proto (at least version 26) is installed on your machine by running.
hcd -v
Subsequent steps also assumes npm/yarn is installed.
Install the javascript packages with
cd frontend
npm install
Start frontend on port 3000
npm start
Start backend HC server on port 4141 (in a new terminal window)
cd backend
hcdev web 4141
The front-end app is served at http://localhost:3000
. Backend exposes API http://localhost:4141
.
Frontend is configured to reload during development, backend needs hcdev server restart after each change to it's code.
Both backend
and frontend
require certain folder structer for compilation. Below is a quick description of folder structure:
app
├── frontend // Source code of a front-end
│ └── public // Static files
│ └── src // React / Redux app
├── backend // Source code of a back-end
│ └── dna // Holochain DNA folder
│ └── test // HC tests
│ └── ui // Frontend source if served on port 4141
└── docs
This project is licensed under the GPL-3 License - see the LICENSE.md file for details