Project | Technologies | How to run
This is just a very simple url shortener made in Golang.
This app was made using the following technologies:
To clone and run this application, you'll need Git + Docker + Docker-Compose + Web Browser installed on your computer.
# Clone this repository
$ git clone https://github.com/lucastssb/urlshortener.git
# Go into the repository
$ cd urlshotener/Server
# Run containers
$ docker compose up
# The rest server will be available on localhost:8080
# Access "http://localhost:8080/Bzgbai" on your web browser and see what happens
Send a http POST request to "localhost:8080/create" with a JSON on its body
Example:
{
"url": "http://facebook.com"
}
If everything worked out you will get the following response from the server
{
"urlShorten": "/XVlBzg"
}
To run the web page just go into the folder "urlshotener/Web" and open the "index.html" file on your web browser.
Made with ♥ by Lucas Barbosa 👋 Get in touch!