make install
make snapshot
make db-start # wait for container is up and running
make db-restore
make db-pro
make pro-start
make spec
make docs
Just hit the make upgrade
command to pull the latest images from Docker Hub and restart services. Specs and Docs will be also generated.
make upgrade
make spec
will generate a GET
code sample for each endpoint using the open-api/code-samples/config/gen-code-samples.config.json
config.
-
Create a Handlebars template file in
open-api/code-samples/templates
eg.open-api/code-samples/templates/javascript.hbs
-
Update
open-api/code-samples/config/gen-code-samples.config.json
config eg."JavaScript": "open-api/code-samples/templates/javascript.hbs",
-
Now
make spec
will generate aGET
code sample for each endpoint using the updated config and Handlebars template
make spec
will update x-tagGroups
in the Open API spec it generates using open-api/data/open-api-tag-groups.json
To run tests
npm run test
or in watch mode
npm run test:watch
The Node version for this project is automatically managed by AVN and NVM, read more here.