A Node.js app that ports the AngularJS Projects app to use Postgres backend(instead of MongoDB)
- Clone the app to
pgProjectsListfolder cd pgProjectsListfoldernpm installnode app.js- open browser at
localhost:3000
- Clone the app to
pgProjectsListfolder cd pgProjectsListfoldernpm 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
- 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
- Front-end is from AngularJS example.
VMware

