In this project, a search engine, particularly for Wikipedia has been implemented. User needs to enter the term in the search box for which he requires information from Wikipedia. Another feature of this application is, the user search history is also displayed.
The project has been hosted here : Search Wiki
-
Nodejs :
Nodejs is a server side scripting language for Javascript. -
Mongo DB :
Mongo DB is a No SQL database. MongoDB uses JSON-like documents with schemas. -
Express :
We have designed this application using Express which is a web framework for Node js. It provides wide range of features for web development using Nodejs -
Wikipedia JS :
Wikipedia.JS is a small Javascript library for accessing information in Wikipedia articles such as dates, places, abstracts and more. -
Jade :
Express used Jade as a templating engine. Jade gives you a powerful new way to write markup, with a number of advantages over plain HTML. -
Material :
A Responsive front-end framework based on Material design.
-
Install Nodejs, mongoDB on your machine.
-
In the repository you will find 2 folders : Local and Remote. Traverse to the local folder. You will find a file "package.js". This file contains all the node modules that need to be installed before running the application locally. In order to install this modules run the following command in the shell within the local folder :
npm install
This command installs all the dependencies mentioned in the "package.js" in a folder called "node_modules"
In order to install any single package and to include that package inside of the dependencies section of your package.json automatically run the following command
npm install _package-name_ --save
-
The application uses mongoDB, so you need to first start the MongoDB server in another shell. The data of the application is stored in the folder named "data"
sudo mongod --dbpath _path to the data folder_
-
Now to run the application on the local server, port 3000, add the following code in app.js
app.listen(3000, function () { console.log('Example app listening on port 3000!') })
-
To start the application run the following command in the terminal:
node app.js
This starts the application locally at localhost:3000