A simple Node E-Commerce application for testing RESTful web services. This application is built for testers to practice API Testing Manually using tools like Postman or using API Test Automation tools like SuperTest, Rest-Assured, Playwright, Cypress, Boyka-Framework, etc.
npm install
npm start
APIs are exposed on http://localhost:3004/
Swagger is exposed on http://localhost:3004/api-docs
http://localhost:3004/swagger.json
to generate and download the Swagger JSON fileswagger-output.json
in your project directoryPostman
app and click on Import
swagger-output.json
from the root folder of the projectOpenAPI 3.0 with a Postman Collection
and click on Import
Clone the repo
Navigate into the restful-ecommerce root folder
Run docker compose -f docker-compose-ecommerce.yml up -d
- This command will start the application in detached mode
APIs are exposed on http://localhost:3004/
Swagger is exposed on http://localhost:3004/api-docs
Run docker compose -f docker-compose-ecommerce.yml down
to stop the application.
After running all the steps mentioned in the Installation steps
section, the following command will execute all the unit-tests. (It is optional to run the unit tests, these tests are written using Super-Test)
npm run unit-test
mohammadfaisalkhatri@gmail.com
OR ping me on any of the social media sites using the below link: