Skip to content

lucastssb/urlshortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UrlShortener

Project   |    Technologies   |    How to run   


App screen

💻 Project

This is just a very simple url shortener made in Golang.

🚀 Technologies

This app was made using the following technologies:

ℹ️ How To Run

To clone and run this application, you'll need Git + Docker + Docker-Compose + Web Browser installed on your computer.

Clone and Run the server


# 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

Create new short url

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!

About

Url shortener made in go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published