d44294d40d
* 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 |
||
---|---|---|
.. | ||
.vscode | ||
bin | ||
models | ||
public/stylesheets | ||
routes | ||
views | ||
.gitignore | ||
app.js | ||
config.js | ||
package.json | ||
readme.md |
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