wardbell / angular-cosmosdb

Cosmos DB, Express.js, Angular, and Node.js app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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

About

Cosmos DB, Express.js, Angular, and Node.js app

License:MIT License


Languages

Language:TypeScript 45.2%Language:JavaScript 31.6%Language:CSS 14.6%Language:HTML 8.6%