Skip to content

FullStack & RESTful webservices with Node, Express, ejs & MongoDB

Notifications You must be signed in to change notification settings

VenomVendor/FullStack-Node.js

Repository files navigation

FullStack-Node.js

Getting started with Node-Express-ejs-MongoDB

Build Status bitHound Code bitHound Overall Score bitHound Dependencies bitHound Dev Dependencies

Clone

git clone https://github.com/VenomVendor/FullStack-Node.js.git

Prerequisites

{Installation}

git clone https://github.com/VenomVendor/FullStack-Node.js.git
cd FullStack-Node.js
npm i

Start Mongo Server

mongod

Import MongoDB dump

Import MongoDB dump

Start Server

gulp

Default port

3030

Server URL

http://localhost:3030

APIs

Weather APIs

http://localhost:3030/v1/get/weather?limit=20&offset=0&state=Vermont&temp=lte~39&windSpeed=gt~4.00000&windDir=lt~180&humidity=gte~60

Weather Params

param
(case-sensitive)
Type Default Description
type string html json/html Output type.
limit integer 100 Max results.
offset integer 0 Skip first {offset} results.
callback string/boolean/integer/json - callback for reference.
_id hexa - Hexa-decimal Object(_id) / id
state string - State
airport string - Airport Name
day integer - gt~ / gte~ / lt~ / lte~ ex: gt~4
time integer - gt~ / gte~ / lt~ / lte~ ex: gte~4
temp integer - gt~ / gte~ / lt~ / lte~ ex: lt~4
humidity integer - gt~ / gte~ / lt~ / lte~ ex: lte~4
windSpeed integer - gt~ / gte~ / lt~ / lte~ ex: 4
windDir integer - gt~ / gte~ / lt~ / lte~ ex: 4.0
pressureStation integer - gt~ / gte~ / lt~ / lte~ ex: 04
pressureSea integer - gt~ / gte~ / lt~ / lte~ ex: 40

User APIs

http://localhost:3030/v1/get/users?limit=4&offset=0&gender=queen

User Params

param
(case-sensitive)
Type Default Description
type string html json/html Output type.
limit integer 100 Max results.
offset integer 0 Skip first {offset} results.
callback string/boolean/integer/json - callback for reference.
_id hexa - Hexa-decimal Object(_id) / id
id integer - N/A
firstName string - N/A
company string - N/A
email string - N/A
gender string - king/queen
g string - king/queen

HTML

- http://localhost:3030/v1/(a|RANDOM|*).html

TODO

- Move to ES6 Promise.
- Write test cases.

License

Copyright© 2016 VenomVendor <info@VenomVendor.com>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

FullStack & RESTful webservices with Node, Express, ejs & MongoDB

Resources

Stars

Watchers

Forks

Packages

No packages published