Giter Site home page Giter Site logo

lil131 / blockchain-backed-rating-system Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kaleido-io/developer-challenge

0.0 0.0 0.0 4.27 MB

a blockchain backed rating system for movies

License: MIT License

JavaScript 83.20% Solidity 5.83% HTML 6.83% CSS 4.14%

blockchain-backed-rating-system's Introduction

Developer Challenge - Movie Rating System

Introduction

This is a blockchain backed rating system for movies It allows user to browser and rate movies.

Start it up

Before start

1. dependency

Install all the dependecy at both frontend & backend with npm install

2. deploy contract

Rating data is saved in Kaleido. Use the following commands to deploy a contract:

cd backend/scripts/
node bootstrap.js

Deployed instance and openapi will be printed out in terminal. Copy backend/config.example.js to backend/config.js and replace the value of CONTRACT_INSTANCE and OPENAPI with the printed values.

3. crawl data

The repo has already included pre-crawled data of 250 movies from IMDb, saved in backend/data.json. Use the following steps to re-crawl:

cd backend/scripts
node crawler.js

Run for production

Build the client with the following command

cd frontend
npm run-script build

Start the server:

cd backend
NODE_ENV=production npm start

Type http://localhost:4000/ in browser to start using the system.

Run for development

Start the backend in one terminal:

cd backend
npm start

Start the frontend development server in another terminal:

cd frontend
npm start

Features

List movies

List movies with posters, titles, average ratings, etc. Movies can be sorted by rating, publish time or popularity. Sort Movie List Movie

Rate movie

Clicking the movie card will open a drawer showing the detailed movie information and allow user to rate the movie. Rate Movie

Search movie

Typing title keywords will instantly get the related movies. Search Movie

Responsive

Responsive to different viewsize. Large Screen Middle Screen

Mobile screen Mobile screen
Small Screen Small Screen

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.