azure-cosmos-js/samples/TodoApp
Christopher Anderson d44294d40d
Update samples to new OM (#79)
* Update samples to latest OM

* Makes debugging samples easier

* npm start should run samples now

* Various fixes to make the samples all run fine

* Update samples readme

* Update main readme to make code sample more prominent
2018-07-30 16:39:34 -07:00
..
.vscode TypeScript conversion (#3) 2018-06-04 14:03:49 -07:00
bin TypeScript conversion (#3) 2018-06-04 14:03:49 -07:00
models Update samples to new OM (#79) 2018-07-30 16:39:34 -07:00
public/stylesheets TypeScript conversion (#3) 2018-06-04 14:03:49 -07:00
routes TypeScript conversion (#3) 2018-06-04 14:03:49 -07:00
views TypeScript conversion (#3) 2018-06-04 14:03:49 -07:00
.gitignore TypeScript conversion (#3) 2018-06-04 14:03:49 -07:00
app.js Update samples to new OM (#79) 2018-07-30 16:39:34 -07:00
config.js Update samples to new OM (#79) 2018-07-30 16:39:34 -07:00
package.json TypeScript conversion (#3) 2018-06-04 14:03:49 -07:00
readme.md TypeScript conversion (#3) 2018-06-04 14:03:49 -07:00

readme.md

Todo App

Sample Todo app

Prereqs

  • Build the SDK (see dev.md)
  • Node 8 (uses async/await)

Config

If you're using the local emulator with default config, it should work without setting any additionanl config

Environment Variables

  • host - url for the Cosmos DB (default is https://localhost:8081)
  • AUTH_KEY - master key for the Cosmos DB (default is the well known key for emulator)
  • PORT - port for the web app (default is 3000)

Run

npm i
npm start

open browser to http://localhost:3000