Giter VIP home page Giter VIP logo

zappr's Introduction

zappr

Approval checks for GitHub pull requests.

Build Status Code Climate Dependencies Gitter

Zappr is a GitHub integration built to enhance your project workflow. Built by open-source enthusiasts, it's aimed at helping developers to increase productivity and improve open-source project quality. It does this primarily by removing bottlenecks around pull request approval and helping project owners to halt "rogue" pull requests before they're merged into the master branch.

Setup, FAQ and further information

Please refer to our documentation.

Development

Zappr needs a database during development and testing. For this reason there's a docker-compose.yaml for your convenience, with which you can either start a database for development (postgres-dev):

# starts postgres docker container
docker-compose up postgres-dev
# creates database and schemas, only needed first time
./init_db.sh
export DB_HOST="$(docker-machine ip)"
npm run all

If you would like to run a complete Zappr locally, you can do it like this:

  1. Export your Github credentials and docker-machine IP:
export DM_IP="$(docker-machine ip)"
export GITHUB_CLIENT_ID=<your-client-id>
export GITHUB_CLIENT_SECRET=<your-client-secret>
  1. Start Zappr via docker compose or npm
docker-compose up
npm install
npm run build
npm run all
  1. Install and run localtunnel to expose your localhost
npm i -g localtunnel
lt -s myzappr -p 3000
  1. Set your OAuth application URLs to https://myzappr.localtunnel.me in the GitHub settings

  2. Go to https://myzappr.localtunnel.me and do things :)

Debug Client and Server:

npm run build
npm run all

Enable debug logs...

...in the terminal:

export DEBUG="zappr:*"

...in the browser console:

window.DEBUG.enable('zappr:*')

Test:

First start the testing database:

export DB_HOST="$(docker-machine ip)"
docker-compose up postgres-test
# creates database and schemas, only needed first time
./init_db.sh

Then you can do:

  • npm test - run combined tests
  • npm run test-client - run only client tests
  • npm run test-server - run only server tests
  • npm run test-karma - run Karma (UI) tests

Docker Image:

  1. Check out master and clean up your git status

  2. Run the build script:

     ./tools/build.sh (<tag>)
    
  • NPM_BUILD_INSIDE_CONTAINER "true" to build inside a container
  • DOCKER_ARTIFACT_FILE file to store docker artifact name in

Contributing to Zappr

Please read our contributor guidelines for more details. And please check these open issues for specific tasks.

License

The MIT License (MIT)

Copyright (c) 2016 Zalando SE

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

zappr's People

Contributors

aermakov-zalando avatar akhomchenko avatar greenkeeperio-bot avatar hjacobs avatar lappleapple avatar luisfarzati avatar mfellner avatar prayerslayer avatar rkeytacked avatar sebastianpoeplau avatar spaudanjo avatar tunix 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.