Skip to content

kunmi02/url-shortner

Repository files navigation

Fluid contact projects

This project is an implementation of a bit.ly like url shortener.

Urls are shortened using a base62 token strategy, trying to avoid collisions and also reducing the database size. Tokens have 7 characters, which gives us 62^7 possible tokens.

Built With

  • Ruby v2.7.2
  • Ruby on Rails v6.1.4.4

Live Demo

[BASE_URL] https://floating-eyrie-47045.herokuapp.com/

Getting Started

To get a local copy up and running follow these simple example steps.

Prerequisites

Ruby: 2.6.3 Rails: 5.2.3 Postgres: >=9.5

Setup

Instal gems with:

bundle install

Setup database with:

   rails db:create
   rails db:migrate

Github Actions

To make sure the linters' checks using Github Actions work properly, you should follow the next steps:

  1. On your recently forked repo, enable the GitHub Actions in the Actions tab.
  2. Create the feature/branch and push.
  3. Start working on your milestone as usual.
  4. Open a PR from the feature/branch when your work is done.

Usage

Start server with:

    rails server

Open http://localhost:3000/ in your browser.

Run tests

    rpsec --format documentation

Tests will be added by Microverse students. There are no tests for initial features in order to make sure that students write all tests from scratch.

Deployment

TBA

Authors

TBA

🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

TBA

📝 License

TBA