Skip to content

GoURL Shortener: A efficient URL shortener built with Go, showcasing the power of net/http and html/template packages with Tailwind CSS.

License

Notifications You must be signed in to change notification settings

Gabrielm3/url-shortner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go URL Shortener

This is a project that showcases how to create a URL shortener in Go with Tailwind CSS.

Utilizing the following technologies and libraries:

  • Go: The programming language used.
  • net/http: Go's standard package for building HTTP servers.
  • html/template: Go's standard package for HTML template rendering.

Project Structure

The project is organized as follows:

  • main.go: The main code for the API server.
  • handlers: Folder containing HTTP request handlers.
  • services: Folder containing business logic.
  • templates: Folder containing HTML templates.

Prerequisites

Before getting started, you must have the following prerequisites installed:

How to Set Up and Run

Follow these steps to set up and run the API:

  1. Clone the repository:
git clone https://github.com/Gabrielm3/url-shortner.git
  1. Navigate to the project folder:
cd url-shortner
  1. Run the project:
go run main.go

Usage

After successful execution, you can use the URL Shortner. Simply open http://localhost:8080 in your browser and enter the URL you want to shorten.

Contributing

Contributions are welcome! If you find a bug or have an enhancement, feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

GoURL Shortener: A efficient URL shortener built with Go, showcasing the power of net/http and html/template packages with Tailwind CSS.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published