Skip to content

Swaptacular micro-service that manages payments

Notifications You must be signed in to change notification settings

epandurski/swpt_payments

Repository files navigation

swpt_payments

NOTE: THIS SERVICE IS NO LONGER RELEVANT!

Swaptacular micro-service that manages payments

It implements several public `Dramatiq`_ actors (see swpt_payments/actors.py), and a very simple web API (see swpt_payments/routes.py).

How to run it

  1. Install Docker and Docker Compose.

  2. Install RabbitMQ and either create a new RabbitMQ user, or allow the existing "guest" user to connect from other hosts (by default, only local connections are allowed for "guest"). You may need to alter the firewall rules on your computer as well, to allow docker containers to connect to the docker host.

  3. To create an .env file with reasonable defalut values, run this command:

    $ cp env.development .env
    
  4. To start the containers, run this command:

    $ docker-compose up --build -d
    

How to setup a development environment

  1. Install Poetry.

  2. Create a new Python virtual environment and activate it.

  3. To install dependencies, run this command:

    $ poetry install
    
  4. You can use flask run to run a local Web server, or dramatiq tasks:broker to spawn local task workers.

About

Swaptacular micro-service that manages payments

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published