ShortNatra is a simple URL Shortener API built with Sinatra and using Redis for storage.
- Ruby 2.2.4
- Redis
- Rubygems
- Bundler
If you have all dependencies, you can set your development environment by following commands.
git clone git@github.com:beydogan/shortnatra.git
cd shortnatra
bundle install
rackup
Your server will be up and running at localhost:9292
ShortNatra uses Rspec for testing. You can run tests with following command.
bundle exec rspec spec
ShortNatra uses Docker for deployment. Dockerfile and docker-compose.yml is included in the repo. You can run docker instance by following commands.
docker-compose build
docker-compose up