Skip to content

Marketplace-Express/shop_api

Repository files navigation

Shop: API Service

Description:

The API Gateway for marketplace system.


Installation:

  1. Clone the repository:
git clone [email protected]:marketplace-system/shop_api.git
  1. Rename the file “.env.example” under “/” to “.env” then change the parameters to match your preferences, example:
#RABBITMQ CONNECTION PARAMS
RABBITMQ_HOST=
RABBITMQ_PORT=
RABBITMQ_USER=
RABBITMQ_PASS=

#REDIS CONNECTION PARAMS
REDIS_HOST=
REDIS_PORT=
REDIS_PASSWORD=
...

Note: You can use network (marketplace-network) gateway ip instead of providing each container ip

  1. Build a new image:
docker-compose build
  1. Run the containers
docker-compose up -d

If you want to scale up the workers (sync / async), you can simply run this command:

docker-compose up --scale api-interface=num -d

Where “num” is the number of processes to run, example:

docker-compose up --scale api-interface=3 -d

Unit test

To run the unit test, just run this command:

docker-compose up api-unit-test

About

The API Gateway for Marketplace system.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages