cd045961c7
Bumps the npm_and_yarn group with 4 updates in the /server directory: [ini](https://github.com/npm/ini), [lodash](https://github.com/lodash/lodash), [path-parse](https://github.com/jbgutierrez/path-parse) and [y18n](https://github.com/yargs/y18n). Updates `ini` from 1.3.5 to 1.3.8 - [Release notes](https://github.com/npm/ini/releases) - [Changelog](https://github.com/npm/ini/blob/main/CHANGELOG.md) - [Commits](https://github.com/npm/ini/compare/v1.3.5...v1.3.8) Updates `lodash` from 4.17.20 to 4.17.21 - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21) Updates `path-parse` from 1.0.6 to 1.0.7 - [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7) Updates `y18n` from 4.0.0 to 4.0.3 - [Release notes](https://github.com/yargs/y18n/releases) - [Changelog](https://github.com/yargs/y18n/blob/y18n-v4.0.3/CHANGELOG.md) - [Commits](https://github.com/yargs/y18n/compare/v4.0.0...y18n-v4.0.3) --- updated-dependencies: - dependency-name: ini dependency-type: indirect dependency-group: npm_and_yarn-security-group - dependency-name: lodash dependency-type: indirect dependency-group: npm_and_yarn-security-group - dependency-name: path-parse dependency-type: indirect dependency-group: npm_and_yarn-security-group - dependency-name: y18n dependency-type: indirect dependency-group: npm_and_yarn-security-group ... Signed-off-by: dependabot[bot] <support@github.com> |
||
---|---|---|
.. | ||
public | ||
server | ||
test | ||
.babelrc | ||
.cfignore | ||
.env | ||
.eslintignore | ||
.eslintrc.json | ||
.gitignore | ||
.nodemonrc.json | ||
package-lock.json | ||
package.json | ||
README.md |
HMS server-side code
Get Started
Get started developing...
# install deps
npm install
# run in development mode
npm run dev
# run tests
npm run test
PLEASE READ THIS WHEN ADDING YOUR PART TO SERVER
There are two key files that enable you to customize and describe your API:
server/routes.js
- This references the implementation of all of your routes. Add as many routes as you like and point each route your express handler functions.server/common/api.yaml
- This file contains your OpenAPI spec. Describe your API here. It's recommended that you to declare any and all validation logic in this YAML.express-no-stress-typescript
uses express-openapi-validator to automatically handle all API validation based on what you've defined in the spec.
Install Dependencies
Install all package dependencies (one time operation)
npm install
Run It
Run in development mode:
Runs the application is development mode. Should not be used in production
npm run dev
or debug it
npm run dev:debug
Run in production mode:
Compiles the application and starts it in production production mode.
npm run compile
npm start
Test It
Run the Mocha unit tests
npm test
or debug them
npm run test:debug
Try It
- Open your browser to http://localhost:3001
- Invoke the
/examples
endpointcurl http://localhost:3001/api/v1/examples
Debug It
Debug the server:
npm run dev:debug
Debug Tests
npm run test:debug
Debug with VSCode
Add these contents to your .vscode/launch.json
file
Lint It
View prettier linter output
npm run lint
Fix all prettier linter errors
npm run lint
Deploy It
Deploy to CloudFoundry
cf push server