TodoMVC using Cloudant and Compose for MongoDB services running on Bluemix.
-
Add items to the todo list by typing into the box and pressing
Enter
-
Mark items as complete by clicking the checkmark to the left of the corresponding item.
-
Delete items by clicking the 'X' to the right of the corresponding item that appears on hover.
-
Edit existing todo items by double-clicking on the corresponding item.
-
Create a Bluemix Account
Sign up for Bluemix, or use an existing account.
-
Download and install the Cloud-foundry CLI tool
-
Go on the Bluemix catalog and select nodeJS Runtime, remember the name of the application you just created, we will use it later
-
Click on the newly created app and go to the Connection section and hit Connect New. Create a new Compose for mongoDB service and remember the name of the service you just created, we will use it later
-
Clone the app to your local environment from your terminal using the following command
git clone https://github.com/hkgian/bluemix-node-todo.git
- Change the directory to the node directory
cd node
-
Edit the manifest.yml file with the name of the application and the name of the Service
-
Push the application to Bluemix with the following commands, you need to be in the folder where the manifest file is located.
cf login -a https://api.eu-gb.bluemix.net
cf push