Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aviabird/gringotts_payment

Demo Phoenix app showing gringotts payment library integrations.
https://github.com/aviabird/gringotts_payment

elixir elixir-lang gringotts-payment payment-gateway payments phoenix phoenix-framework

Last synced: about 2 months ago
JSON representation

Demo Phoenix app showing gringotts payment library integrations.

Awesome Lists containing this project

README

        

# GringottsPayment
An Example application showing, the integration of different
*Payment Gateways* in a Phoenix application using [`gringotts`](https://github.com/aviabird/gringotts) library.

To test this application locally:
* Fork this repository.
* Install dependencies with `mix deps.get`
* (Optionally) Start postgres via `make start-pgsql` via Docker. You'll need
docker installed locally.
* Confirm via `docker ps` if required.
* Use `make pgsql` to start postgres in foreground to troubleshoot, if
needed.
* `export
DATABASE_URL=postgres://postgres:@localhost:5432/gringotts_payment_dev`
* `make clean-pgsql` to remove image and start over.
* You may need to start `make start-pgsql` twice, after `clean-pgsql`
* Create and migrate your database with `mix ecto.create`
* Install Node.js dependencies with `cd assets && npm install`
* Start Phoenix endpoint with `make dev`

Now you can visit [`localhost:4000`](http://localhost:4000) from your browser.

Checkout the running application @ [`gringotts_pay`](https://gringottspay.herokuapp.com/)

## Learn more

* Official website: http://www.phoenixframework.org/
* Guides: http://phoenixframework.org/docs/overview
* Docs: https://hexdocs.pm/phoenix
* Mailing list: http://groups.google.com/group/phoenix-talk
* Source: https://github.com/phoenixframework/phoenix