UNPKG

generator-express-no-stress

Version:

Awesome APIs with ExpressJS and OpenAPI/Swagger: Features automatic request validation, interactive api doc, and more.

114 lines (73 loc) 1.41 kB
# <%= name %> <%= description %> ## Get Started Get started developing... ```shell # install deps npm install # run in development mode npm run dev # run tests npm run test ``` ## Install Dependencies Install all package dependencies (one time operation) ```shell npm install ``` ## Run It #### Run in *development* mode: Runs the application is development mode. Should not be used in production ```shell npm run dev ``` or debug it ```shell npm run dev:debug ``` #### Run in *production* mode: Compiles the application and starts it in production production mode. ```shell npm run compile npm start ``` ## Test It Run the Mocha unit tests ```shell npm test ``` or debug them ```shell npm run test:debug ``` ## Try It * Open you're browser to [http://localhost:3000](http://localhost:3000) * Invoke the `/examples` endpoint ```shell curl http://localhost:3000<%= apiRoot %>/examples ``` ## Debug It #### Debug the server: ``` npm run dev:debug ``` #### Debug Tests ``` npm run test:debug ``` #### Debug with VSCode Add these [contents](https://github.com/cdimascio/generator-express-no-stress/blob/next/assets/.vscode/launch.json) to your `.vscode/launch.json` file ## Lint It View <%= linter %> linter output ``` npm run lint ``` Fix all <%= linter %> linter errors ``` npm run lint ``` ## Deploy It Deploy to CloudFoundry ```shell cf push <%= name %> ```