GithubHelp home page GithubHelp logo

hmasila / shotn Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 1.33 MB

Shotn is a URL shortening service. It is currently hosted on Heroku. Follow the link to see more

Home Page: https://shotn.herokuapp.com/

Ruby 67.56% JavaScript 1.82% HTML 24.37% Dockerfile 0.33% SCSS 5.92%
ruby-on-rails ruby shorten-urls

shotn's Introduction

Build Status Coverage Status Code Climate Issue Count

alt text

shotn

shotn is a URL shortening service. The application accepts really long URLs and turns them into short URLs for easy use in email and social media. Registered users have the privilege of customizing the shorter URL to a string they can remember. Additionally, the user can update or delete the shortened URL at will.

Application Features

  1. Shortens a long URL to a much shorter URL that is easier to remember
  2. Can accept a vanity string to provide a customized URL for registered users
  3. User is able to edit the customized URL.
  4. User can activate and deactivate shortened URL at will
  5. User can delete shortened URL at will
  6. Shows the top users on the application based on their number of shortened URLs
  7. Sorts shortened URLs by how recent they were created.
  8. Sorts shortened URLs by how many times they have been clicked.

Dependencies

  1. Ruby
  2. PostgreSQL
  3. Bundler
  4. Rails
  5. RSpec

Running the application

Clone the application to your local machine:

$ git clone https://github.com/andela-hmasila/shotn.git

Navigate to the shotn directory

$ cd shotn

Install the dependencies

$ bundle install

Setup database and seed data

$ rake db:setup

Start the server

$ rails server

Visit http://localhost:3000 to view the application on your preferred web browser.

Testing

Run the following command from the terminal to get all tests running

$ rspec spec

Limitations

Vanity string can only be less than 6 characters A little bit slow when generating a short url

Contributing

  1. Fork it! Fork shotn on Github
  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

License

This project is licensed under the MIT License - see the LICENSE.md file for details

shotn's People

Contributors

hmasila avatar

Watchers

 avatar

Forkers

kenny-kogi

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.