node-ottoman icon indicating copy to clipboard operation
node-ottoman copied to clipboard

Update demo projects

Open AV25242 opened this issue 4 years ago • 0 comments

The sample demo projects try-ottoman and try-ottoman-ts needs to clearly exhibit

   -  Connection  (non-secure, with a file and steps for secure)
   -  Configuration  
   - Setting up primary key, Keygenerator 
   -  Logging
   -  Debugging
   -  Schema and Models.  - Exhibiting defining Scopes and Collections at different level.
   -  Schema in strict mode
   -  Hooks
   -  Cast
   - Validators and Constraints
   -  Timestamps
   -  Model Querying
   - Create Many
   - RemoveById, findOneAndRemove
   - Replace vs Update
   - Update Many, findOneAndUpdate 
   - Refdocs (with select).
   - N1QL query builder.
   - scripts for (dev, start, build & server)
"scripts": {
    "test": "test",
    "dev": "ts-node-dev --respawn src/index.ts",
    "start": "npm run build && npm run serve",
    "build": "rimraf ./lib && tsc",
    "serve": "node lib/index.js"
  },

BEST PRACTICES for bootstrapping and organizing folder structure, especially around Ottoman instances.

Please update the README.md with explanation.

Ensure Sample application uses inventory scope and the collections within it Also make sure the documentation is updated to reflect the changes

AV25242 avatar Aug 18 '21 19:08 AV25242