/caesarapp-old-server

Primary LanguagePHPGNU General Public License v3.0GPL-3.0

caesarapp-server

SensioLabsInsight CircleCI

==========

Setup

Linux/Windows/MacOS

Install Docker and Docker Compose

MacOS only

Install Docker Sync

gem install docker-sync

(!) Required configuration .env file

ENV=prod

# Required for the server api
WWW_DIR=/var/www/html
SERVER_HTTP_PORT=8080
SERVER_HOSTNAME=localhost
BASE_API_URL=http://localhost:8080

# Required for the client app
CLIENT_HTTP_PORT=8181
CLIENT_HOSTNAME=localhost
CLIENT_ORIGIN=http://localhost:8181

# Required for the mongodb
MONGODB_HOST=mongodb
MONGODB_PORT=27017
MONGODB_DATABASE=caesar

Run

Linux/Windows

docker-compose up -d

MacOS

docker-sync-stack start

Run with the web client in the prod mode

ENV=prod docker-compose -f docker-compose.yml -f docker-compose-client.yml up

API

API documentation will be available at /api endpoint.