Todo API Server built with Swagger (a.k.a. The OpenAPI Spec)
This repo contains the Todo API server built with Swagger, part of the Egghead.io series on Creating Node.js APIs with Swagger.
- Clone the repo. Switch to the todo-api directory in the repo downloaded.
- Install dependencies with
npm install
- Ensure you have swagger installed globally with
npm install swagger -g
- Start the node.js application using Swagger with
swagger project start
- Alternately, you can run the API server using nodejs-dashboard with
npm run dev
- Ensure you have nodejs-dashboard installed with
npm install nodejs-dashboard -g
- Ensure you have nodejs-dashboard installed with
- Launch the swagger editor to view/edit the API definition with
swagger project edit
- Download and extract jmeter
- Launch jmeter by navigating to the folder you downloaded, run
bin/jmeter
- Open the
jmeterTest.jmx
file in this repo to load test the API server