Skip to content

SaiSakthidar/Spider_Devops_task2

Repository files navigation

SETUP

new test push Clone the repo and run bash deploy.sh

TEST COMMANDS

Direct to Server

curl -X POST http://localhost:3001/users/register -H "Content-Type: application/json" -d '{"name":"test", "email":"[email protected]", "password":"1234"}'

curl -X POST http://localhost:3001/users/login -H "Content-Type: application/json" -d '{"email":"[email protected]", "password":"1234"}'

curl -X POST http://localhost:3002/product/create -H "Content-Type: application/json" -d '{"name":"New Product", "description":"A new product description", "price":99.99}'

curl -X POST http://localhost:3002/product/buy -H "Content-Type: application/json" -d '{"ids":["668b7c6ca8b30a0fe3823a72"]}'

Nginx Reverse Proxy

curl -X POST http://localhost/users/login -H "Content-Type: application/json" -d '{"email":"[email protected]", "password":"1234"}'

curl -X POST http://localhost/users/register -H "Content-Type: application/json" -d '{"name":"test", "email":"[email protected]", "password":"1234"}'

curl -X POST http://localhost/product/create -H "Content-Type: application/json" -d '{"name":"Toothbrush", "description":"Brush your teeth", "price":10}'

curl -X POST http://localhost/product/buy -H "Content-Type: application/json" -d '{"ids":["668b7c6ca8b30a0fe3823a72"]}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published