Skip to content
Cosmos DB, Express.js, Angular, and Node.js app
Branch: master
Clone or download
MaximRouiller Merge pull request #29 from MaximRouiller/master
ran npm audit fix. fixing package-lock.json
Latest commit 23bc44e Aug 18, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Update GitHub Templates (#28) Jun 27, 2018
e2e init Aug 18, 2017
src Fix mongoose (#26) Jun 26, 2018
.angular-cli.json merge latest changes Sep 5, 2017
.dockerignore merge latest changes Sep 5, 2017
.editorconfig merge latest changes Sep 5, 2017
.eslintrc.json merge latest changes Sep 5, 2017
.gitignore ignore local conn strings Nov 19, 2017
.snyk Security dependencies (#27) Jun 26, 2018
CHANGELOG.md Fix mongoose (#26) Jun 26, 2018
CONTRIBUTING.md merge latest changes Sep 5, 2017
Dockerfile init Aug 18, 2017
LICENSE.md Initial commit Aug 18, 2017
README.md Update README.md (#25) Jun 27, 2018
TUTORIAL.md init Aug 18, 2017
VIDEOS.md init Aug 18, 2017
karma.conf.js init Aug 18, 2017
package-lock.json ran npm audit fix. fixing package-lock.json Jul 22, 2018
package.json Security dependencies (#27) Jun 26, 2018
protractor.conf.js init Aug 18, 2017
tsconfig.json init Aug 18, 2017
tslint.json init Aug 18, 2017

README.md

services platforms author
cosmos-db
nodejs
jopapa

Angular Cosmos DB

by John Papa

You can watch me build the app as part of my series here

You can view all videos together here

Learn more about developing Node.js apps with Azure's cloud services here

Requirements

  1. Install the Angular CLI

    npm install -g @angular/cli
  2. Install the Azure CLI

  3. Set up a Cosmos DB server with a MongoDB database. Make sure you note the name of the Azure Cosmos DB account, the name of the database, the primary password and the port. You can find all this information in the Azure portal.

Getting Started

  1. Clone this repository

    git clone https://github.com/johnpapa/angular-cosmosdb.git
    cd angular-cosmosdb
  2. Install the npm packages

    npm i
  3. Configure Cosmos DB server settings

    Rename the example-environment.js file to environment.js in the server/env/ folder and update it with your Cosmos DB settings. Replace the account, database name, key, and port with your specific configuration.

    // server/env/environment.js
    
    module.exports = {
      accountName: 'your-cosmosdb-account-name-goes-here',
      databaseName: 'your-cosmosdb-database-name-goes-here',
      key: 'your-key-goes-here',
      port: 10255
    };

Running the app

  1. Build the Angular app

    ng build
  2. Launch the server

    node src/server/index.js
  3. Open the browser to http://localhost:3000

Problems or Suggestions

Open an issue here

You can’t perform that action at this time.