Skip to content
README.md 1.22 KiB
Newer Older
Stefano Alberto Russo's avatar
Stefano Alberto Russo committed
# ESAP
Stefano Alberto Russo's avatar
Stefano Alberto Russo committed


This is a repository for quickly having an instance of ESAP up & running. Batteries included.


## Quickstart

Requirements:
    
    Bash and Docker.

Setup

    $ esap/setup


Build

    $ esap/build

Run

    $ esap/run
    
Popluate with demo data
Stefano Alberto Russo's avatar
Stefano Alberto Russo committed

Clean

    $ esap/clean

### Development mode

To get live code changes in the ESAP API gateway, uncomment the "volumes" section fot the `api-gateway` service in the `docker-compose.yml` file.

To get live code changes in the ESAP GUI, uncomment the "volumes" section fot the `gui` service in the `docker-compose.yml` file. NOTE: still to be tested and requires recompiling heh frinted.
Stefano Alberto Russo's avatar
Stefano Alberto Russo committed

### Extras

List all running services

    # esap/ps

View logs

    $ esap/logs

Open a shell in a service

    # esap/shell service_name

Build a specific service

    # esap/build service_name

Run a specific service

    # esap/run service_name

View logs of a specific service

    # esap/logs service_name

Stefano Alberto Russo's avatar
Stefano Alberto Russo committed




### Building errors

It is common for the build process to fail with a "404 not found" error on an apt-get instrucions, as apt repositories often change their IP addresses. In such case, try:

    $ esap/build nocache