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.
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.
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.
Under ./Worker
node worker.js
Under ./APIServer
node app.js
Under ./FrontEnd
npm start
Under ./Worker
node seed.js
A MongoDb dump is under the ./Worker/dump/movie-sharing
A Elasticsearch dump is under the ./Worker/dump/elasticsearch-dump
We recorded a video to introduce the front end technology, and showing a running demo to introduce the website.
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.
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 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.
We use ImageMagick to process the pictures uploaded by users. The pictures will be converted into a proper format and saved.