Giter Club home page Giter Club logo

stick's Introduction

Stick

Dev dependencies

This project requires Go to develop. All dependencies are are listed in the Brewfile, and can be installed using Homebrew:

brew bundle

Build

You have two options to build the binary:

  1. If you have Go installed locally and you checkouted the repository withint your $GOPATH then just use: Run:
make build
  1. You also can checkout the repo anywhere and build the binary using Docker:
make build_docker

By default build_docker command will build the binary for MacOS (amd64) but you can override this via GOOS and GOARCH paramaters e.g.

make build_docker GOOS=windows
  • although currently it is tested only for MacOS.

Either way you will have a binary called stick in the current directory.

In order of it to work - need to create a config file:

cp config.json.example config.json

Update config.json

Where:

command: a command to run the server and make it ready to accept HTTP requests to the endpoint specified as url. For example you might want to checkout a specific branch, reset the cache and start the server.

To do that, you could create a shell script to run your Django-like project:

cd /foo/bar/project/ &&
git reset HEAD --hard && git checkout feature &&
source venv/bin/activate &&
python manage.py runserver

pre_request_command: the same idea as for command but it will be executed before earch HTTP request.

stick's People

Contributors

zerc avatar

Watchers

 avatar James Cloos avatar Richard Quaite avatar Ryan Clarke avatar Bartosz Dziendzik avatar Lynden Oliver avatar Brian Walker avatar Vincenzo Trapani avatar boda avatar Emilien MURATON avatar Justinas Masiulis avatar James Mayell avatar BTaylor avatar Agata avatar

stick's Issues

Simplify the usage from CLI

Make it possible to use a simplified definition of tasks e.g. instead of defining a full config.json, in case, when you just want quickly compare 2 URL you should be able to do that like this:

stick URL1 URL2 --attempts=5

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.