Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Younesi/go-url-shortener

Repository files navigation

Run the Application

Here is the steps to run it with docker-compose

Clone

$ git clone https://github.com/younesi/go-url-shortener.git

Move to project

$ cd go-url-shortener

Build it up

docker-compose up --build -d

Check if the containers are running

$ docker ps

APIs

Postman

  • Postman file(URL shortener.postman_collection.json) is added to the repository

Create short URL API

$ curl --request POST \
--data '{
    "long_url": "https://www.linkedin.com/in/mahdi-younesi/"
}' \
  http://localhost:3000/api/v1/create-short-url

Get short URL API

$ curl --location --request GET 'http://localhost:3000/api/v1/Rx8hdYnM'

Stop

docker-compose down

About

URL shortener in GoLang with clean architecture in mind!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published