Skip to content

Nidheesh-Panchal/shorturl

Repository files navigation

shorturl

A project to allow to shorten URLs into a 7 character short url.

Demo

shorturl.mp4

Future Work

Create a docker container for the backend server and host it on Cloud platform.

Dev Notes

How to Build the project

Prerequisites:

  • Java 17
  • maven

Run the following command to build the project. This will generate a *.jar file for the project.

# build project
mvn clean package

# A jar is created at the target/shorturl-0.0.1.jar

Using this jar file to build docker image.

docker build --no-cache -t short-url:v0.0.1 .

# Optionally push to a repository of your liking

Run the app in docker

docker compose up -d
docker compose logs -f

Run with kustomize on k8s cluster

# Build image for minikube local env
eval $(minikube docker-env)
docker build -t short-url:v0.0.1 .

# Run kustomize command to get a single yaml manifest file
# this will save the file to out.yaml in k8s folder
# easy to check what was actually deployed
cd k8s
kubectl kustomize ./ > out.yaml

# apply the manifest files
kubectl apply -k ./

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages