Skip to content

guillaumefrd/mongodb-interface

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
api
 
 
img
 
 
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

mongodb-interface

Introduction

This web application is an interface to make queries on a MongoDB dataset.

The dataset contains the 5000 top sell movies on Amazon.

Get started

Installation

  • open your MongoDB server (mongod)
  • open a MongoDB Client and run:
> use MOVIES

> db.createCollection("films")
  • copy the repository on your computer
  • with the Node.js command prompt, go to the folder and run:
> npm install
  • to launch the application, run:
> npm start

Usage

  • open your web browser (application tested on Chrome and Firefox)
  • go to localhost:3000

Import the movies dataset

  • download the file movies.json
  • on the application, go to the Configuration page
  • log with:
    • username: prof
    • password: prof
  • import the file movies.json (mongod must be open on your computer)

Features

Queries

You can explore the movies dataset with the following queries:

  • title: select all the movies that contains your word(s) in the title
  • plot: select all the movies that contains your word(s) in the plot
  • year: select all the movies from this year
  • rank: select all the movies with a rank between your range
  • rating: select all the movies with a rating between your range

Admin

The admin must log on the configuration page.

Then, he/she can import the movies dataset.

Screenshots

  1. Query on title

screen_search_title

  1. Query on year

screen_year_title

  1. Query on rating

screen_rating_title

  1. Upload page

screen_upload

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published