Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/murilochianfa/redstore-microservice-based
Redstore microservice based, a simple implementation with docker containers.
https://github.com/murilochianfa/redstore-microservice-based
docker ecomerce microservices php
Last synced: about 14 hours ago
JSON representation
Redstore microservice based, a simple implementation with docker containers.
- Host: GitHub
- URL: https://github.com/murilochianfa/redstore-microservice-based
- Owner: MuriloChianfa
- License: mit
- Created: 2020-09-02T21:33:06.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-05-24T05:58:01.000Z (over 1 year ago)
- Last Synced: 2025-01-04T12:55:52.530Z (9 days ago)
- Topics: docker, ecomerce, microservices, php
- Language: PHP
- Homepage:
- Size: 8.85 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
#
Welcome to the Redstore microservice based, a simple implementation with docker containers
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/MuriloChianfa/Redstore-Microservice-Based/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/MuriloChianfa/Redstore-Microservice-Based/?branch=master) [![Code Coverage](https://scrutinizer-ci.com/g/MuriloChianfa/Redstore-Microservice-Based/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/MuriloChianfa/Redstore-Microservice-Based/?branch=master) [![Build Status](https://scrutinizer-ci.com/g/MuriloChianfa/Redstore-Microservice-Based/badges/build.png?b=master)](https://scrutinizer-ci.com/g/MuriloChianfa/Redstore-Microservice-Based/build-status/master) [![Code Intelligence Status](https://scrutinizer-ci.com/g/MuriloChianfa/Redstore-Microservice-Based/badges/code-intelligence.svg?b=master)](https://scrutinizer-ci.com/code-intelligence)
#### How to setup the DEV environment:
```bash
git clone https://github.com/MuriloChianfa/Redstore-Microservice-Based.git
``````bash
cd Redstore-Microservice-Based
``````bash
cp .env.example .env && vi .env
``````bash
Scripts/gen-ssl.sh
``````bash
docker-compose build && docker-compose up -d
``````bash
docker container exec -u 0 redstore-api composer install && \
docker container exec -u 0 redstore-web composer install
```To setup the PROD environment use -f docker-compose.production.yml in two commands
#
## Architecture:
#
## Database schema:
### Accessing database:
```
$ docker container exec -it redstore-database mysql -u root -p"simple-server" -D "redstore"
```#
## Short example of API endpoints
> Base URL: https://REDSTORE_IP/api
* GET /products
* GET /products/{page}/{limit}
* GET /products/{page}/{limit}/{order}/{direction}
* GET /product/{id}
* POST /product
* POST /product-image/{id}
* PATCH /product
* DELETE /product-image/{id}Getting data with Curl
```shell
$ curl -ks -X GET https://REDSTORE_IP/api/product/1 | jq .
```
Output
```json
{
"message": {
"id": 1,
"name": "example product",
"value": 20,
"description": "example product",
"available": 1,
"rate": 0,
"collection_id": null,
"category": {
"id": 8,
"name": "Others"
},
"ProductImage": []
}
}
```#
## Frontend features
> Add and exclude new products and there images