Skip to content
This repository has been archived by the owner on Jun 13, 2019. It is now read-only.

Serverside / API for Rates Rebate Service

License

Notifications You must be signed in to change notification settings

GOVTNZ/pancake-backend

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rate Rebate

Council admin interface & Public frontend

Build Status Maintainability AwesomeCode Status for ServiceInnovationLab/pancake-backend Test Coverage

Production server = https://ratesrebates.services.govt.nz

Installation

To set up a development environment

This is an app built using Json API suite

  1. make your own fork, and clone git clone [repo]

  2. cd pancake-backend

  3. Set up environment variables cp env-example .env

You will need ruby, the bundler gem to install dependencies. We recommend managing your ruby with a tool like rbenv or rvm

Install the dependencies

bundle install
yarn install

You will need a database. Any database supported by ruby on rails / jsonapi suite should work, but we only support Postgresql. Configure your database url in your .env, then:

bundle exec rake db:create db:migrate

To run the server:

bundle exec rails s

Seed the database and create a user:

bundle exec rake db:seed

This will pop up an invitation email for[email protected] in your browser. If the server is running you will be able to click the link to accept the invitation and set your password.

To run the tests

bundle exec rspec

Test coverage report is at coverage/index.html

About

Serverside / API for Rates Rebate Service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 40.8%
  • Ruby 31.7%
  • CSS 23.5%
  • HTML 3.7%
  • Other 0.3%