Simple URL shortener written in Go and using the Chi library to handle HTTP requests. It allows you to create short aliases for long URLs and redirect from a short alias to the original URL.
Name: URL Shortener
Year: 2023
Build and run the project locally
go build -o bin/url-shortener cmd/url-shortener/* && bin/url-shortener -config=config/local.yaml
Run all tests
go test ./... -v
- Initialization
- Configuration setup
- Logger
- Storage
- Storage methods
- Create and setup router
- Router middlewares
- Logger custom
- Save handler
- Http server
- Tests: save handler, random lib
- Redirect handler
- Delete handler
- Auth
- Redirect test
- Functional tests
- Deployment
- Github Actions
This project is licensed under the MIT License. See the LICENSE file for more information.
Author: Zhenya Paitash