Code Monkey home page Code Monkey logo

instragram's Introduction

instragram

A web interface to interact with a part of Instagram database, using mongodb server.

To use this application you need to install some packages :

  • express
  • ejs
  • body-parser
  • request
  • path
  • child_process
  • fs
  • mongodb
  • adm-zip
  • system-sleep

You can use this line on your commande line (from your main repository) to add all packages you need 👍 :

npm install express ejs body-parser request path child_process fs mongodb adm-zip system-sleep

To use this application you should install mongodb server. You can download it from http://www.mongodb.org/downloads and you should install node js also https://nodejs.org/en/download/. Think to define it in environment variable for easiest manipulation!

Steps to use it

Launch the application using the command: node main.js

First step

Enter your repo where you downloaded the mongodb server, more precisely the "bin" folder alt tag

And then you can see that the mongodb is currently running! alt tag

You have three options in this step :

First one :

If it's the first time to use this application, you need to download the database and import it to mongodb. We do it for you! All you have to do is following those steps : Launch the mongodb with a consequent waiting time (5 seconds in my case) alt tag

Then, you have to check the box, and enter the path to your bin folder alt tag

PS : if you forgot to check the box, the database wont be downloaded and imported : alt tag

Then, you can see that mongodb is launched, but you have to wait for the downloaded database and the import phase. alt tag

Finally, you will have a message on the command line teeling you that all process are good alt tag

By the way, you have to ask for the creation of the database! if you don’t check the box at least one time, the database will be empty and there won’t be any results!)

Second one:

You already had the database in the mongodb server, you just need a simple connexion to it : alt tag

To do this, you shouldn't check the box alt tag

Third one:

Finally, it the database is already exoprted, and the mongod.exe is already running, you may run the application in this way : alt tag

Second step

After you're connected, you will have three differents views:

alt tag

Admin view

You will have some statistics on the database alt tag

Users view

You will have two different ways to query the database. The first one is to filter users directly using a simple form, and in the second you would use the prepared query we ready to be exectued. alt tag

Some choices you have in the users view alt tag

The results will be in a responsive table form. It implement a quick search on it's elements : alt tag

The results can be shown in a chart after this table for some queries alt tag

If there are no results, that table will be empty alt tag You also have a button in the bottom of the page to get the json object we got from the query you asked for. alt tag

The json will be like : alt tag

Analyst view

The analyst view is exatcly like the users view, but the query are more heavy and may not be exectued any time. alt tag

instragram's People

Contributors

absabry avatar

Watchers

James Cloos avatar  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.