/mutual-rating

A mutual node-to-node rating hApp.

Primary LanguageHTML

Mutual rating app

Mutual rating app on holochain network

GitHub last commit License: GPL v3

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Ensure holochain-proto (at least version 26) is installed on your machine by running.

hcd -v

Subsequent steps also assumes npm/yarn is installed.

Installing

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.

Folder structure

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

Built With

Authors

License

This project is licensed under the GPL-3 License - see the LICENSE.md file for details