Skip to content

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

Notifications You must be signed in to change notification settings

hasan3ysf/mysqlProjectsList

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Running it locally

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

Running it on Cloud Foundry

  • Clone the app to mysqlProjectsList folder
  • cd mysqlProjectsList folder
  • npm install
> vmc push mysqlProjectsList
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 mysqlProjectsList... OK

1: mysqlProjectsList.cloudfoundry.com
2: none
URL> mysqlProjectsList.cloudfoundry.com   <---------This'll be the url of your app

Updating mysqlProjectsList... 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?> 3      <--------------- Select & add MySQL service

Name?> mysql-ccc0e <-- Just a name of the MYSQL service

Creating service mysql-ccc0e... OK
Binding mysql-ccc0e to mysqlProjectsList... OK
Create another service?> n

Bind other services to application?> n

Save configuration?> n

Uploading mysqlProjectsList... OK
Starting mysqlProjectsList... OK
Checking mysqlProjectsList... 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 the AngularJS ProjectsList app to use MySQL backend (instead of MongoDB)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published