In DevOps_Testing project we took an existing App from GitHub (https://github.com/scotch-io/node-todo) and deployed it to the Google Cloud Platform. We used MongoDB for creating the database. You also need to set up your database (We created a free cluster and set up a serverless vpc connection) For the deployment we decided to use Google App Engine. We split the application into two services - default (frontend) and api (backend). We wrote configuration files using YAML syntax.
A Node app built with MongoDB and Angular. For demonstration purposes and a tutorial.
Node provides the RESTful API. Angular provides the frontend and accesses the API. MongoDB stores like a hoarder.
- Node and npm
- MongoDB: Make sure you have your own local or remote MongoDB database URI configured in
config/database.js
- Clone the repository:
git clone git@github.com:scotch-io/node-todo
- Install the application:
npm install
- Place your own MongoDB URI in
config/database.js
- Start the server:
node server.js
- View in browser at
http://localhost:8080
This repo corresponds to the Node Todo Tutorial Series on scotch.io
Each branch represents a certain tutorial.
- tut1-starter: Creating a Single Page Todo App with Node and Angular
- tut2-organization: Application Organization and Structure
- tut3-services: Controllers and Services
Happy Todo-ing!