Trips - consultantjay/LTIMEARN GitHub Wiki

What is Trips

Trips,is a web application developed to explore various resorts.User will be able to search resorts. Trips be will helpful to those who are planning for a vacation and searching for resorts so trips will help them to save their time by providing the exact and specific information.

Product Description:

Trips is an applicaton used for searching and sorting of resorts according to the requirememt. It will also get the list of all the resorts according to the search done by the user. Trips will give the facility to user to view the Resorts on the map.

Features that will be delivered:

1.Various search criteria

1.1.Search through City

1.2.Search through Area

1.3.Search through Hotel name

2.Sorting

3.Listing resorts

4.Detailed view of each resort

5.Google map (for plotting the location of specific resort)

Future Scope(features will be implementing in future)

1.Booking Resorts

2.Reviews

3.Offers

4.Ways to reach to the specific place from users current location

4.Covering more regions by expanding dataset

Technologies used

1.Mongo DB

2.Node JS

3.Express JS

4.Angular 6

5.React JS

Why NoSQL?

NoSQL systems are distributed, non-relational databases designed for large-scale data storage and for massively-parallel, high-performance data processing across a large number of commodity servers. They arose out of a need for agility, performance, and scale, and can support a wide set of use cases, including exploratory and predictive analytics in real-time. They arose out of a need for agility, performance, and scale, and can support a wide set of use cases, including exploratory and predictive analytics in real-time. Built by top internet companies to keep pace with the data deluge, NoSQL data base scales horizontally, and is designed to scale to hundreds of millions and even billions of users doing updates as well as reads.

MongoDB

MongoDB is a document database with the scalability and flexibility that you want with the querying and indexing that you need. MongoDB is a free and open-source cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with schemas. MongoDB is developed by MongoDB Inc., and is published under a combination of the GNU Affero General Public License and the Apache License.

Node.js

Node.js is an open-source, cross-platform JavaScript run-time environment that executes JavaScript code server-side. Historically, JavaScript was used primarily for client-side scripting, in which scripts written in JavaScript are embedded in a webpage's HTML and run client-side by a JavaScript engine in the user's web browser.

Express.js

Express.js, or simply Express, is a web application framework for Node.js, released as free and open-source software under the MIT License. It is designed for building web applications and APIs.It has been called the de facto standard server framework for Node.js.

Angular

Angular (commonly referred to as "Angular 2+" or "Angular v2 and above") is a TypeScript-based open-source front-end web application platform led by the Angular Team at Google and by a community of individuals and corporations. Angular is a complete rewrite from the same team that built AngularJS.

React

In computing, React (also known as React.js or ReactJS) is a JavaScript library for building user interfaces. It is maintained by Facebook and a community of individual developers and companies.React can be used as a base in the development of single-page or mobile applications. Complex React applications usually require the use of additional libraries for state management, routing, and interaction with an API.

Functionality

MongoDB queries are used to access list of required details from the Database. Documents: 4007 Fields : 20

Node.js Query example. Documents are returned on the basis of city name provided. Hospital Name and description is returned by the following query.

//*1.Search by city

var mongojs = require('mongojs');

var db = mongojs('project',['hotel','hotels_feedback']);

db.hotel.find({"city":new RegExp('^'+req.params.city,'i')},function(err,docs){

	res.json(docs);

});

The Service APIs are called whenever an event is hit on the User Interface. Express APIs are written in node.js with callback functions to avoid any blocking, and allows other code to be run in the meantime.

var express = require('express');

var app=express();

var bodyParser = require('body-parser');

app.use(bodyParser.json());

var mongojs = require('mongojs');

var db = mongojs('project',['hotel','hotels_feedback']);

app.use(express.static(__dirname)); //to tell server that this is root folder

//Service call for list users

app.get('/list/city/:city',function(req,res){

db.hotel.find({"city":new RegExp('^'+req.params.city,'i')},function(err,docs){

	res.json(docs);

});

}); app.listen(3000); console.log("Running on port 3000");

Help