Skip to content

Simple web app responding with any http status code or redirects you require

License

Notifications You must be signed in to change notification settings

levups/dummy_http

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c39693e · Oct 22, 2018

History

40 Commits
May 22, 2017
May 22, 2017
May 4, 2017
May 16, 2018
Apr 15, 2017
May 3, 2017
Apr 10, 2017
Oct 22, 2018
May 3, 2017
Oct 22, 2018
Oct 22, 2018

Repository files navigation

Build Status

Dummy HTTP

Simple HTTP server app written in Crystal using Kemal framework.

HTTP Dummy can be used to test your app against very basic HTTP responses (HTTP status 200, 404, 500, etc.) but also more complex scenarios like infinite redirect, local redirect or other domain redirect.

Installation

A Makefile is included in this project so you can simply run this command to install all dependencies on macOS :

make setup

If you need to install manually, install Crystal language then all dependencies (libraries):

crystal deps

Usage

Build the application:

make release

Run the application, listening by default on TCP port 3000:

./dummy

You can specify a specific port:

./dummy --port 4242

Development

Run tests:

KEMAL_ENV=test crystal spec

Start the application:

crystal run src/dummy_http.cr

Build (compile) without optimizations:

crystal build src/dummy_http.cr

Build (compile) for release, with optimizations:

crystal build --release src/dummy_http.cr

Contributing

  1. Fork it ( https://github.com/levups/http_dummy_crystal/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • czj Clément Joubert - creator, maintainer

About

Simple web app responding with any http status code or redirects you require

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published