In this project you’ll use Ruby and Sinatra to build a URL shortener service.
Your application will live on the Internet. It will allow anonymous users and registered users to provide long, ugly URLs and create shortened URLs through your service.
The main goal of your application is to redirect a request at the shortened URL to their long URL equivalent.
Your secondary goal is to track URL usage and provide valueable statistics which you can use to share with your users and/or with advertisers.
- Understand how web traffic works
- Designing with RESTful interfaces
- Design a normalized SQL-based database structure
- Use ActiveRecord to interface with the database from Ruby
- Practice fundamental database storage and retrieval
- Understand and practice HTTP verbs including GET, PUT, and POST
- Practice using fundamental HTML and CSS to create a usable web interface
1 2 3 4 5 6 7 8 9 10 11 12 13
1 2 3 4 5 6 7 8 9
Choose two extension scenarios.
1 2 3 4
Create a ruby gem that uses your API
2.1.1 :001> 2.1.1 :002> 2.1.1 :003>
Provide additional statistics on the main page of your application, a user’s page of shortened URLS, and indivudal URL pages.
1 2 3 4 5 6 7 8 9 10 11 12 13
Provide additional tools that allow individuals to remove, deactivate and modify existing defined shortened URLs.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
Create a job process that collects information about all the defined target URLs. The data should be stored and indexed. Users are able to search through all the stored/indexed data and appropriate links are returned to them.
Create a cucumber test suite that employs Capybara to test your applications current feature set.
- Is it clear on how to get started with the application?
- Is it clear the external dependencies of the project?
- Is it clear to run the tests?
- Is it clear on the features of the application?
- Is it clear the limitations of the application?
- Does the application meet the expectations defined above?
- Is the application consistent with other ruby applications you have written or seen?
- Are the files of the application laid out in a logical manner?
- Does the code within each file directly relate to the name of the file and location within the application?
- Is the code clearly laid out within the class?
- Does each method accomplish their intended task or do they do more than their intended?
- Are the user passwords stored securly in the database?
- Are the shortened urls generated within the Url model or within a class method?
- Does each sinatra routing action handle a single operation?
- Are there a small number of instance variables defined?
- Could multiple of the instance variables be represented with a singular concept/object?
- Are the views well formatted?
- Are the views broken into appropriate sub-view templates?
- Are the views free of complicated code and conditional logic?
- Do the tests run? Are there failures?
- Are the tests within the test file directly related to the file they are testing?
- Is it clear what code is under test?
- Is it clear what scenario is being tested?
- Is it clear the expected results of the scenario?
- Is there a lot of repetition of setup/teardown in the tests?