Giter Site home page Giter Site logo

punitpatel214 / baby-url-generator Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 1.0 5.58 MB

URL shortening is used to create shorter aliases for long URLs. We call these shortened aliases “short links.” Users are redirected to the original URL when they hit these short links. Short links save a lot of space when displayed, printed, messaged, or tweeted. Additionally, users are less likely to mistype shorter URL

License: Apache License 2.0

Java 68.67% HTML 2.08% CSS 12.88% JavaScript 15.35% Shell 0.05% Dockerfile 0.97%
system-design software-architecture software-design microservice architecture-decision-records architecture shorturl-services tinyurl-service

baby-url-generator's Introduction

JAVA CI Node CI

Baby-Url-Generator

This repository is for learning system design, system design implementation not only with diagrams but also with end to end implementation with best practices.

Live Application: https://baby-ui-punitpatel214.cloud.okteto.net/

Overview

Baby URL Generator creates shorter url for long URLs. We call these shortened url “baby links.” Users redirect to the original URL when they hit these baby link. Baby links save a lot of space when displayed, printed, messaged, or tweeted. Additionally, users are less likely to mistype shorter URL.

User

  • thousands, one day millions

Requirements

  • Create portal for baby url generator, User generate baby url from long url. User will redirect to original URL when they hit baby url.
  • User can share baby link through Social Media. In future user can create QR code for baby link.
  • Baby url should not be guessable.
  • User can see all created baby link and can delete baby link. User can change long url.
  • Guest User also can generate baby link.

baby-url-generator's People

Contributors

ankitbhavsar avatar punit-ee avatar punitpatel214 avatar

Watchers

 avatar  avatar  avatar

Forkers

ankitbhavsar

baby-url-generator's Issues

BenchMark Performance of Redis, Memcache and Hazelcast

Redis, Memcache, and Hazelcast all provide cache solutions. Execute performance tests and benchmarks with each solution. So, we have performance stats for each cache solution.

Based on Performance stats we may change the cache solution.

configure gitleak scan for repository

Gitleaks is a SAST tool for detecting and preventing hardcoded secrets like passwords, api keys, and tokens in git repos. Gitleaks is an easy-to-use, all-in-one solution for detecting secrets, past or present, in your code.
refer for more information.

integrate gitleak in repository

Puzzlers

List down problems face while implementing the project

  1. TestPropertyProvider in Micronaut does not support List value support, For Test Instance in micronaut we can configure the test property of Map<String, String>. But It has no support for LIst. Need to investigate it. Currently, resolve this issue by using Map without generic parameters. -> ask question

  2. In CI some Mock tests are working on local but not working on CI. Still don't know why this happens. Currently,fix these tests by adding eq mockito matcher in argument. [See]( https://github.com/punitpatel214/baby-url-generator/blob/master/url-shortener/src/test/java/com/babyurl/urlshortener/resolver/BaseURLRedirectionUrlResolverTest.java l)

[Spike] Identify guest user in application

identify the guest users in the application.
If a guest users come back to the baby-ui portal, the system can identify him/her based on mac, IP, cookies, or other attributes and provide some details like older baby-urls.

set up expiry page

Currently, when the baby URL expired, it redirects to an error page with response URL expired

Create a page for expired URL and redirect to this page on URL expired.

Service Integration Test

Implement service integration test which test end-to-end flow

  • create docker images
  • run test on docker
  • integrate it with GitHub action

[Spike] User Management

  • Create end to end diagram for user integration in the application
  • create database design for user
  • create documentation for it

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.