Giter Site home page Giter Site logo

moviesharing's Introduction

MovieSharing

Introduction

This is a movie sharing website, allowing users to post movies they like, post screenshots, make comments, rate movies with score and share movies to other users. The user can also mark a movie as watched, or wishing to watch.

The website provide top 10 rated movie dislpay. Also, users can view movies by category, or simply search keywords they want. Any information of a movie can be searched as keyword, such as movie name, release year, or director.

Core Features

User signup and login

Post movies on the website

Make comments and rating

Mark a movie watched, or wishing

See top rated movies

Search in all movie using keyword(s)

View movies by category

Search movies in a specified category

Share movies to other users(with a share message)

etc.

How to run

Environment

You need to have MongoDB, Elasticsearch, ImageMagick and Redis installed.

Install node modules, and run the services needed(MongoDB, Elasticsearch and Redis) before going next step.

Start the website

Data Worker

Under ./Worker

node worker.js

API Server

Under ./APIServer

node app.js

Front End Server

Under ./FrontEnd

npm start

To seed some initial data

Under ./Worker

node seed.js

Database dump

A MongoDb dump is under the ./Worker/dump/movie-sharing

A Elasticsearch dump is under the ./Worker/dump/elasticsearch-dump

About the front end

We recorded a video to introduce the front end technology, and showing a running demo to introduce the website.

About the back end

Data worker

We use MongoDB as our main database. A data module is constructed to realize MongoDB CRUD operations. A worker is constructed to wait for CRUD requests from the API server, and do works using the data module, then return responses. These requests and responses are sent over the Redis pub/sub setup.

API server

An API server is constructed to provide the RESTful APIs for the front end. The API server accepts the requests from the front end, and send a meesage to the worker. After the worker returns the message, the API server then will send a response back to the front end.

Elasticsearch

Elasticsearch is a powerful search and analytics engine. We apply Elasticsearch to provide advanced search options on search in movies.

When a movie is created, or updated in the main database, a copy will be persisted in the Elasticsearch. Search methods will be called from data module when executing advanced search, and return information to the data module. The final search result will then be assembled in the data module and returned to upper layer.

ImageMagick

We use ImageMagick to process the pictures uploaded by users. The pictures will be converted into a proper format and saved.

moviesharing's People

Contributors

pjw0618 avatar yqdu avatar boling77 avatar simontintin777 avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar

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.