Some people wish to extend or develop the Anypay open source software to better suit their needs. We welcome your contributions to any of our public GitHub repos.
Before running the tests you will need to create a postgres server container and migrate the database schema.
The file docker-compose.yml
contains a default postgres database setup configuration.
Once you have docker-compose
installed, create the database with the following command:
docker-compose up -d postgres
To migrate the database using docker-compose
:
anypay
imagedocker-compose build server
migrate
commanddocker-compose run server npx sequelize db:migrate --url=postgres://postgres:password@postgres:5432/anypay
npm
If you have npm
installed on your system:
npm install
npx sequelize db:migrate --url=postgres://postgres:password@postgres:5432/anypay
docker run -d --name postgres.anypay \
--p 5432:5432 \
-v ./anypay_db_data:/var/lib/postgresql/data \
--restart=always \
postgis/postgis:12-3.3