Skip to content

beydogan/shortnatra

Repository files navigation

ShortNatra

ShortNatra is a simple URL Shortener API built with Sinatra and using Redis for storage.

Dependencies

  • Ruby 2.2.4
  • Redis
  • Rubygems
  • Bundler

Development

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

Starting up the server

rackup

Your server will be up and running at localhost:9292

Running Tests

ShortNatra uses Rspec for testing. You can run tests with following command.

bundle exec rspec spec

Deployment

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

About

URL Shortener API built with Sinatra and Redis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages