Simple Shorten URL using Redis and Auth0
Simple App for Shorten your URL and using Redis as the main databases.
Screenshots
- Non Login - Home Page
- Login - Home Page
- URL List - By Users
- Edit URL
Overview video
Here's a short video that explains the project and how it uses Redis:
How it works
How the data is stored:
The data is stored as JSON values and only has a single structure.
-
Each JSON values have properties:
- Id : Generated id, used for the key too.
- ShortenUrl: The shorten URL, will be used to find the original URL. (Indexed)
- OriginalUrl: The original URL, will be used to redirect the pages.
- CreatedBy: To know the creator, will allow editing for entries that are created by authenticated users. (Indexed)
- VisitedCounter: To know how many "clicks" or visited the shortened url.
The key is generated ShortenUrl.Models.Urls:{urlId}
.
Also generate index "FT.CREATE" "Urls"
…