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.
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.
Before getting started, you must have the following prerequisites installed:
- Go: Go Installation
Follow these steps to set up and run the API:
- Clone the repository:
git clone https://github.com/Gabrielm3/url-shortner.git
- Navigate to the project folder:
cd url-shortner
- Run the project:
go run main.go
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.
Contributions are welcome! If you find a bug or have an enhancement, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.