Skip to content
/ cprox Public

A basic HTTP proxy & url shortener written in Crystal

License

Notifications You must be signed in to change notification settings

arschles/cprox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cprox

A basic HTTP proxy and url shortener written in Crystal.

Proxy API

GET /forward/:code

Forwards to the URL that was registered with :code

POST /code/:code

Register the URL :url with a given code. The code should be specified in the POST body with JSON:

{
    "url": "some URL here"
}

DELETE /code/:code

Delete the given :code from the registry.

Installation and development

All you need is the Crystal toolchain to build and run this project. Go here to learn how to install the toolchain.

When you have it installed, pull down the dependencies:

$ shards install

When that's done, run the app:

$ crystal run

About

A basic HTTP proxy & url shortener written in Crystal

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published