A URL shortener service written in Go. This service is a part of the Mini Project Alta Kampus Merdeka Batch 3.
- Clone this repository
- Create a
.env
file in the root directory of the project - Copy the content of
.env.example
to.env
file - Fill the
.env
file with your own configuration - Run
go run main.go
- Open your browser and go to
localhost:8080
- Enjoy!
- URL
- Create a short URL
- Redirect to the original URL
- Delete a short URL
- Update the URL
- Set Expired Date
- Get all short URLs by User ID
- Get a short URL details
New Feature!
- User
- Register
- Login
- URL
- Create a short URL
POST {{HOST}}/urls
- Update a short URL
PUT {{HOST}}/urls/:short
- Delete a short URL
DELETE {{HOST}}/urls/:short
- Redirect to the original URL
GET {{HOST}}/:short
- Get all short URLs by User ID
GET {{HOST}}/urls
- Get a short URL details
GET {{HOST}}/urls/details/:short
- User
- Register
POST {{HOST}}/register
- Login
POST {{HOST}}/login
- Go
- Echo
- GORM
- MySQL
- Docker
- Postman
- Git
- Validator
- JWT
- godotenv