A user rating application using the PolkadotJS API and the Edgeware Substrate Node.
Users can rate rate another user only once and cannot change rating and also see ratings of other users.
This is a technical Assessment project. This solution uses Node.js
runtime, React.js
for the UI, with Styled Components
for styling, Polkadot-JS API
easy-to-use wrappers around JSONRPC calls that flow from an application to a node.
Alice;
Bob;
Charlie;
Dave;
Eve;
Ferdie;
Before getting started, make sure you have the following requirements:
- Docker
- Docker Compose (Supporting compose file version 3)
- Node.js (v16 or higher)
- Yarn Package Manager
- A bash compatible shell
Follow these steps to get your development environment set up:
- Clone this repository locally;
# Change to the desired directory
$ cd <desired-directory>
# Clone the repo
$ git clone https://github.com/evanigwilo/user-rating.git
# Change to the project directory
$ cd user-rating
- Start a substrate node in development mode
$ docker-compose up -d
- Install dependencies
yarn install
- Run app
yarn start
- The web-app will be running at http://localhost:3000
# Stops containers and removes containers, networks and volumes
$ docker-compose down -v