TinyUrl – application, which converts the full, long URL into a shortened form.
The project is aimed at practical learning, implementing the knowledge gained in Tomasz Woliński's courses - JOP (Java from scratch) and EAI (Efficient Internet Applications). The application being developed is used to convert a long URL given by the user into a shortened form (modelled on platforms such as Bitly.com, Rebrandly.com, TinyURL.com, among others). The application is based on the REST architecture and the Minimum Viable Product (MVP) model.
The following tools are required to start the application:
To run this project, please clone this repository and create a local copy on your computer.
After download project configure your database and db server in few steps:
- Create database connection with Docker pasting in command line:
docker run --name postgrestinyurl -e POSTGRES_PASSWORD=password -d -p 5432:5432 postgres
- Connect with server:
Login: postgres
Password: password
- Create database in server:
create database db_tinyurl;
Create table:
create table url(
id serial PRIMARY KEY ,
longURL VARCHAR(255) NOT NULL ,
shortURL VARCHAR(16) NOT NULL ,
creationDate DATE NOT NULL DEFAULT CURRENT_DATE );
Created by StormIT community: