Skip to content

rajaraodv/pgProjectsList

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Node.js app that ports the AngularJS Projects app to use Postgres backend(instead of MongoDB)

Running it locally

  • Clone the app to pgProjectsList folder
  • cd pgProjectsList folder
  • npm install
  • node app.js
  • open browser at localhost:3000

Running it on Cloud Foundry

  • Clone the app to pgProjectsList folder
  • cd pgProjectsList folder
  • npm install
> vmc push pgProjectsList
Instances> 1

1: node
2: other
Framework> node  <---- Select Node.js framework

1: node
2: node06
3: node08
4: other
Runtime> 3  <---- Select Node.js 0.8v of runtime

1: 64M
2: 128M
3: 256M
4: 512M
Memory Limit> 64M <----- 64MB memory

Creating pgProjectsList... OK

1: pgProjectsList.cloudfoundry.com
2: none
URL> pgProjectsList.cloudfoundry.com   <---------This will be the url of your app

Updating pgProjectsList... OK

Create services for application?> y

1: blob 0.51
2: mongodb 2.0
3: mysql 5.1
4: postgresql 9.0
5: rabbitmq 2.4
6: redis 2.4
7: redis 2.2
8: redis 2.6
What kind?> 4      <--------------- Select & add Postgresql service

Name?> postgres-ccc0e <-- Just a name of the PG service

Creating service postgres-ccc0e... OK
Binding postgres-ccc0e to pgProjectsList... OK
Create another service?> n

Bind other services to application?> n

Save configuration?> n

Uploading pgProjectsList... OK
Starting pgProjectsList... OK
Checking pgProjectsList... OK

Notes

  • The app runs both locally and on Cloud Foundry w/o any changes to it.
  • Check out Cloud Foundry getting started here
  • Install latest vmc tool by running sudo gem install vmc ---pre

Credits

  • Front-end is from AngularJS example.

Copyright

VMware

About

A Node.js app that ports AngularJS ProjectsList app to use Postgres backend(instead of MongoDB)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors