Skip to content

langaracpsc/LangaraCPSC.WebAPI

Repository files navigation

LangaraCPSC.WebAPI

Web API for langaracpsc-next

Deployment

Dependencies

  • docker
  • docker-compose

Cloning

git clone https://github.com/langaracpsc/LangaraCPSC.WebAPI.git

Configuring

Setting up the repo

cd LangaraCPSC.WebAPI;

git submodule update --init --remote opendatabaseapi;
git submodule update --init --remote KeyMan;

Setting up credentials

Put the Google service account credentials in keyfile.json. The original credentials file can be downloaded from Google cloud console. More Info;

Create a .env file from .templateenv and set the variables as mentioned.

mkdir data && mkdir data/db;
docker compose -f ./docker-compose.yml up -d; 

Restoring a DB dump

CONTAINER is the id of the postgres container. To get that, run

docker container ls

Look for the container with name langaracpscwebapi-postgres_image-1

cp /path/to/dump data/db; # copy the dump to the volume
docker exec -it -u postgres <CONTAINER> bash; # access the container

Inside the container

psql < data/dump;

About

Web API for langaracpsc-next

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 2

  •  
  •  

Languages