A simple URL shortener written in Go, using MongoDB as the database.
- Go
- MongoDB
-
Clone this repository:
git clone https://github.com/krwjohnson/url-shortener.git
-
Navigate to the project directory:
cd url-shortener
-
Build and run the project:
go build go run main.go
-
Open your browser and visit
http://localhost:8080
.
- Enter a URL into the text field.
- Click the "Create short URL" button.
- The short URL will appear below the button. Copy and use it anywhere!
This is a minimum viable product. Features planned for future include:
- User registration and authentication.
- User dashboard to manage their URLs.
- Analytics to track how many times each short URL is used.
Contributions are welcome! Please feel free to submit a Pull Request.