itsalb3rt/sheiley-shop-api

Sheiley Shop API REST

1.3 2019-08-26 23:33 UTC

This package is auto-updated.

Last update: 2024-04-18 20:56:37 UTC


README

The REST API is made in PHP so a server with PHP 7.1 or higher is required.

$ git clone https://github.com/itsalb3rt/sheiley-shop-api.git
$ make install-dependencies

Backend production

In the env file you have a API_ENVIRONMENT variable that can be set to production or development.

#make serve
API_ENVIRONMENT=pro 

Docker

The API is ready for using with docker, copy the .env.bak file and rename it for .env and set your configuration.

# install dependencies
make install-dependencies
# Production
docker-compose up -d
# Development
docker-compose -f docker-compose-dev.yml up -d

⚠️ If you do not use Traefik, remove the labels and the networks section of the docker-compose.yml

Go back to main documentation