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!
Launch the application using the command: node main.js
Enter your repo where you downloaded the mongodb server, more precisely the "bin" folder
And then you can see that the mongodb is currently running!
You have three options in this step :
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)
Then, you have to check the box, and enter the path to your bin folder
PS : if you forgot to check the box, the database wont be downloaded and imported :
Then, you can see that mongodb is launched, but you have to wait for the downloaded database and the import phase.
Finally, you will have a message on the command line teeling you that all process are good
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!)
You already had the database in the mongodb server, you just need a simple connexion to it :
To do this, you shouldn't check the box
Finally, it the database is already exoprted, and the mongod.exe is already running, you may run the application in this way :
After you're connected, you will have three differents views:
You will have some statistics on the database
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.
Some choices you have in the users view
The results will be in a responsive table form. It implement a quick search on it's elements :
The results can be shown in a chart after this table for some queries
If there are no results, that table will be empty You also have a button in the bottom of the page to get the json object we got from the query you asked for.
The analyst view is exatcly like the users view, but the query are more heavy and may not be exectued any time.