Git Product home page Git Product logo

wharehauora-server's Introduction

Whare Hauora Server

Serves a REST api for the Whare Hauora Android application

Host user sign up, and password resets for end users

Status

Build Status Coverage Status Code Climate Issue Count Stories in Ready

Installation

To set up a development environment

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

  2. cd wharehauora-server

  3. Add project upstream git remote add upstream [email protected]:WhareHauora/wharehauora-server.git

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

  5. bundle install

  6. rake db:create db:migrate

  7. bundle exec rails s

To populate to your database with some records to work with:

bundle exec rake db:seed

to create a continuous stream of incoming fake sensor readings:

bundle exec rake sensors:fake

To pull the latest changes from upstream

This fill fetch the latest changes on the official wharehauora git repo, and merge them into your master branch. Then push those changes up to your own fork.

git checkout master
git fetch upstream
git merge upstream/master
git push origin master

More info on how github forks work: https://help.github.com/articles/fork-a-repo/

Code Quality

We use code linters. These check code adheres to our configured code styles and standards. If your code doesn't match then the hound bot will comment on your pull request.

To check code style on your own code before commiting to git, install the overcommit get

gem install overcommit
overcommit --install
overcommit --sign

This will run the same linters are travis and hound. Note: Sometimes overcommit configuration doesn't match, and overcommit allows code that will fail on a PR with hound. When this happens please report as a bug to the wharehauora-server project.

How to run the test suite

bundle exec rspec

How to run the code linters

overcommit -r

Deployment

This app is hosted on heroku.

It wil be automatically deployed to staging, whenever the master branch changes, and Travis-CI build passes.

Code is manually promoted from staging to produciton (using the button on heroku)

wharehauora-server's People

Contributors

br3nda avatar deppbot avatar joshmcarthur avatar serenecloud avatar vinithanatarajan avatar waffle-iron avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.