The products service provides the backend for a products and inventory feature for your app. It exposes the Product and Property data models. These data models have a many-to-many relationship.
A Product is a type of product. It includes the following properties:
Endpoints:
Click here for the full API documentation.
A Property is a custom field for a product. It includes the following properties:
Endpoints:
Click here for the full API documentation.
Here are some instructions for developing this service locally:
You must have Docker installed.
Build the Docker image:
docker-compose build
Run a web server with this service:
docker-compose up
Now, open your browser and go to http://localhost:8080.
For the admin panel, go to http://localhost:8080/admin (user: admin, password: admin).
To run the tests once:
docker-compose run --rm --entrypoint 'bash scripts/run-tests.sh' {name-of-service}
To run the tests and leave bash open inside the container so that it's possible to re-run the tests faster again using bash scripts/run-tests.sh [--keepdb]:
docker-compose run --rm --entrypoint 'bash scripts/run-tests.sh --bash-on-finish' {name-of-service}
To run bash:
docker-compose run --rm --entrypoint 'bash' {name-of-service}
Copyright ©2019 Humanitec GmbH.
This code is released under the Humanitec Affero GPL. See the LICENSE file for details.
The products service provides the backend for a products and inventory feature for your app. It exposes the Product and Property data models. These data models have a many-to-many relationship.
A Product is a type of product. It includes the following properties:
Endpoints:
Click here for the full API documentation.
A Property is a custom field for a product. It includes the following properties:
Endpoints:
Click here for the full API documentation.
Here are some instructions for developing this service locally:
You must have Docker installed.
Build the Docker image:
docker-compose build
Run a web server with this service:
docker-compose up
Now, open your browser and go to http://localhost:8080.
For the admin panel, go to http://localhost:8080/admin (user: admin, password: admin).
To run the tests once:
docker-compose run --rm --entrypoint 'bash scripts/run-tests.sh' {name-of-service}
To run the tests and leave bash open inside the container so that it's possible to re-run the tests faster again using bash scripts/run-tests.sh [--keepdb]:
docker-compose run --rm --entrypoint 'bash scripts/run-tests.sh --bash-on-finish' {name-of-service}
To run bash:
docker-compose run --rm --entrypoint 'bash' {name-of-service}
Copyright ©2019 Humanitec GmbH.
This code is released under the Humanitec Affero GPL. See the LICENSE file for details.
The products service provides the backend for a products and inventory feature for your app. It exposes the Product and Property data models. These data models have a many-to-many relationship.
A Product is a type of product. It includes the following properties:
Endpoints:
Click here for the full API documentation.
A Property is a custom field for a product. It includes the following properties:
Endpoints:
Click here for the full API documentation.
Here are some instructions for developing this service locally:
You must have Docker installed.
Build the Docker image:
docker-compose build
Run a web server with this service:
docker-compose up
Now, open your browser and go to http://localhost:8080.
For the admin panel, go to http://localhost:8080/admin (user: admin, password: admin).
To run the tests once:
docker-compose run --rm --entrypoint 'bash scripts/run-tests.sh' {name-of-service}
To run the tests and leave bash open inside the container so that it's possible to re-run the tests faster again using bash scripts/run-tests.sh [--keepdb]:
docker-compose run --rm --entrypoint 'bash scripts/run-tests.sh --bash-on-finish' {name-of-service}
To run bash:
docker-compose run --rm --entrypoint 'bash' {name-of-service}
Copyright ©2019 Humanitec GmbH.
This code is released under the Humanitec Affero GPL. See the LICENSE file for details.