An Example application showing, the integration of different
Payment Gateways in a Phoenix application using gringotts library.
To test this application locally:
- Fork this repository.
- Install dependencies with
mix deps.get - (Optionally) Start postgres via
make start-pgsqlvia Docker. You'll need docker installed locally.- Confirm via
docker psif required. - Use
make pgsqlto start postgres in foreground to troubleshoot, if needed. export DATABASE_URL=postgres://postgres:@localhost:5432/gringotts_payment_devmake clean-pgsqlto remove image and start over.- You may need to start
make start-pgsqltwice, afterclean-pgsql
- Confirm via
- 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 from your browser.
Checkout the running application @ gringotts_pay
- 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