git clone https://github.com/t1ltxz-gxd/shortify.git
cd shortify
go build
chmod +x ./dotenv.sh
./dotenv.sh
.\dotenv.ps1
make env
Open config/config.yml
and fill in the values
Run go run cmd/grpc_server/main.go
or make start
.
Run golangci-lint run cmd/... internal/... pkg/... --config=./.golangci.yml
or make lint
.
Run go test ./internal/... -v
or make test
.
Run go test ./internal/... -bench=. -benchmem
or make bench
.
Run docker-compose up -d
.
grpc://{{base_url}}/url_v1.UrlV1/Post?url=https://example.com
# Response
{
"short_url": "{{base_url}}/abc123_ABC"
}
grpc://{{base_url}}/url_v1.UrlV1/Get?hash=abc123_ABC
# Response
{
"url": "https://example.com"
}
Contributions are what make the open source community an amazing place to learn, be inspired, and create. Any contributions you make are greatly appreciated.
- Fork the repository
- Clone your fork
git clone https://github.com/t1ltxz-gxd/shortify.git
- Create your feature branch
git checkout -b AmazingFeature
- Stage changes
git add .
- Commit your changes
git commit -m 'Added some AmazingFeature'
- Push to the branch
git push origin AmazingFeature
- Submit a pull request
Released with ❤️ by Tilt.