module
0.0.0-20240411230905-c0eb8fd8579d
Repository: https://github.com/adwski/shorty.git
Documentation: pkg.go.dev
# README
URL Shortener
This is learning project for Yandex Practicum's Go Course.
Shorty can
- store original url and provide shortened url back
- redirect to original url
It also provides simple management operations: listing and deleting urls for specific user, which is authorized via jwt cookie.
Storage backends are
- in-memory
- in-memory with fs persistence
- database (PostgreSQL)
HTTP and GRPC transports are supported.
Development
To be able to run all the tests you need to install
- docker
- mockery
- golangci-lint
shortenertestbeta
,random
,statictest
-> here
git clone https://github.com/adwski/shorty.git
cd shorty
go mod download
# generate mock, run lint, unit tests
make test
# run database tests and shortenertest (it will spawn docker compose project)
make integration-tests
# Packages
No description provided by the author