Skip to content

DBetta/urlshortener

Repository files navigation

URL Shortener

This is a sample application that explores implementation of url shortening similar to bit.ly.

Requirements

  • Docker
  • Java 17
  • Angular 15
  • Postgres

Using docker

docker-compose up

Application can be accessed via http://localhost:10000/

How to run without docker

Running Backend

# environment variables required to connect to database
DB_HOST=localhost
DB_PORT=5432
DB_NAME=url-shortener
DB_USERNAME=postgres
DB_PASSWORD=password

At the root of the project run below command.

# starting application
./gradlew clean bootRun

Running web application

Navigate to the frontend subfolder.

# install dependency
npm install
#executing application
npm run start

Application can be accessed via http://localhost:4200

About

A sample application to help shorten long urls

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published