bruz / mini-checkout-backend

Backend for a simple checkout tracking web app, using Hanami

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mini Checkout - backend

This is the backend for a simple checkout tracking web app. It was mainly an exercise to learn Hanami, but is used by a local nonprofit to track sales for an event they run.

See the frontend at https://github.com/bruz/mini-checkout-frontend.

Install

Prerequisites:

Setup:

git clone https://github.com/bruz/mini-checkout-backend
cd mini-checkout-backend
bundle install
hanami db prepare

Development server

hanami server

The API should now be available at http://localhost:2300 to run the frontend against.

Deploy to Heroku

  1. Configure environment variables
heroku config:set BASIC_AUTH_USER=YOUR-USERNAME BASIC_AUTH_PASS=YOUR-PASSWORD FRONTEND_ORIGIN=https://YOUR-FRONTEND.herokuapp.com
  1. Deploy!

About

Backend for a simple checkout tracking web app, using Hanami

License:MIT License


Languages

Language:Ruby 99.6%Language:HTML 0.4%