- update dependencies.
- removed mstime.
- added new routes: POST /:userId/notes/:noteId/like
- UI Example: added simple components, Modal.
- UI Example: added selectedItem, ItemView, read & update Item.
- added new routes: GET, POST /user/:userId/notes/:noteId
- user.validation.ts: updated listUsers validation.
- added "rest-client-example.rest" - used in VSCode Rest Client extension.
- upgraded dependencies.
- added vercel.json config file for deploying to Vercel.
- BREAKING: use "/api/v1/" for all endpoints.
- fixed npm run build: added rimraf.
- added TODO.md
- removed symlink script (package_symlinks.js) to run on Windows.
- changed to use HTTP (easier for beginners to use) instead of HTTPS.
- added "postman-examples.json" (Postman Collection).
- upgraded dependencies.
- added endpoint: create User Note: POST /users/USERID/notes - payload { title, note }
- added endpoint: POST /auth/logout - payload { userId }
- added a CRA v4 webapp as an example to access APIs.
- added "yarn build" using "tsc"
- support MongoDB populate - example: '&populate=author:_id,firstName&populate=book:_id,url'
- switched to CodeClimate for better static code analysis.
- codeclimate: refactored ModelUtils.listData; fixed duplicate logic.
- BREAKING: Utils: startTimer, endTimer: changed function arguments.
- updated self-signed cert generated by mkcert
- upgraded dependencies: slack, mongoose
- new self-signed cert (localhost.key, localhost.crt)
- route & controller to delete user note /:userId/notes/:noteId
- /status returns a json now
- initData.ts - initialize dev data (admin user & some data)
- userNote model - a simple example of model
- listUserNotes - a simple example to query & return data
- Utils.getQuery - support partial text search (e.g. ¬e=sometext)
- socket on connect
- BREAKING: renamed ALLOW_FIELDS to ALLOWED_FIELDS
- support for "&fields" param in Model.transform(req) to include specific fields in API response
- added Utils.getQuery to get safe query fields from req.query
- added ModelUtils transformData and listData
- added MsgUtils slackWebhook to send message using Slack Incoming Webhook
- added MsgUtils sendEmail (using nodemailer & mailgun)
- added MsgUtils email template function, e.g. sendEmail(welcomeEmail({ name, email }))
- added multer to handle file upload
- added "features.md" to explain features in details
- added /forgot-password route & controller
- fixed yarn lint
- fixed lint errors
- fixed to run on Windows 10 (Powershell)
- upgraded mocha, joi to latest, removed pinned versions.
- upgraded other dependencies
- use mstime to measure API run time.
- measure API response time & show it in response "meta"
- BREAKING: refactor apiJson's "listModel" to "model"
- BREAKING: refactor code to use this syntax: import { User } from 'api/models';