The shopping cart main repository.
- clone the repository with the command below:
git clone https://github.com/buemura/shopping-cart.git
- To run on local environment you will need to have
node
,docker
anddocker-compose
installed.
-
Make sure to have the
.env
on root of all applications insideapps/
directory. -
To start all the required databases
- You can execute the script below to start an instance of mongodb and postgresql:
pnpm run env:up
- Then install all the dependencies:
pnpm install
- To stop apps and local databases
- You can execute the script below to stop the mongodb and postgresql:
npm run env:down
- api-gateway:
- With application running, go to
http://localhost:8080/api/docs
to see the Swagger documentation.
- With application running, go to
- product-service:
- With application running, go to
http://localhost:8081/api/docs
to see the Swagger documentation.
- With application running, go to
- cart-service:
- With application running, go to
http://localhost:8082/api/docs
to see the Swagger documentation.
- With application running, go to