Precis is simple service to create shortened urls and using them to redirect to long urls
The project is based on Spring Boot and Hibernate and is using MySql database Gradle is used as a build tool To run the project: -Open the project with Eclipse/Intellij -Make sure you have a MySql database running. Also mention the database config in application.yml file. -Run PrecisApplication as a spring boot application
We have exposed two REST APIs for shortening the url and one to get longUrl from database -localhost:8080/app/rest/shorten -localhost:8080/app/rest/getLong
Using the longURL, I am getting a hashed value (using SHA256) and encoding it using Base64 and using the first 8 characters as a string for shortUrl