Gnavi-mongo


Project maintained by komushi Hosted on GitHub Pages — Theme by mattgraham

Welcome to gnavi-mongo demo!

Overview

This is a 3-tier SPA or Single Page Application demo which is hosted on Pivotal Web Services - a Cloud Foundry PaaS cloud service.

  1. Presentation tier using AngularJS MVW framework for Web UI.
  2. Logic tier using Node.js including REST API for Web UI, Business Logic to manipulate the data from MongoDB.
  3. Data tier using mongojs to communicate with mongodb instance hosted on mongolab.

Architecture

Node.js

3-tier

With Cloud Foundry

Scaling the app


Live Demo

Application on PWS


Getting started on your laptop

All you need to do is to clone this repository,

git clone https://github.com/komushi/gnavi-mongo
cd gnavi-mongo

Remeber to install node.js and npm and then bower first. Then, install the dependencies:

npm install

Then, run the Application:

npm start

You can access your app at

http://localhost:9000/

Deployment to Cloud Foundry

git clone this repository,

git clone https://github.com/komushi/gnavi-mongo
cd gnavi-mongo

Remember to install cf cli and then get an account from Pivotal Web Services. Then, push the application:

cf push

You can access your app at

http://gnavi-mongo-${random-word}.cfapps.io