url-shortener

module
v0.0.0-...-f10e182 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2023 License: MIT

README

Url Shortener

Installation and running

docker-compose up -d
go install github.com/golang/mock/mockgen@v1.6.0
make install
make up

make

Tests

make test

go fmt

make fmt

Migrations

Install: https://github.com/golang-migrate/migrate/tree/master/cmd/migrate

To create a new migration use

make new name=your_migration_name

To apply your migration use

make up

To downgrade the latest migration use

make down

Directories

Path Synopsis
cmd
internal
action/url/mock
Package mock_url is a generated GoMock package.
Package mock_url is a generated GoMock package.
repository/mock
Package mock_repository is a generated GoMock package.
Package mock_repository is a generated GoMock package.
service/mock
Package mock_service is a generated GoMock package.
Package mock_service is a generated GoMock package.
pkg
api
cache/mock
Package mock_cache is a generated GoMock package.
Package mock_cache is a generated GoMock package.
randomizer/mock
Package mock_randomizer is a generated GoMock package.
Package mock_randomizer is a generated GoMock package.
tokenizer/mock
Package mock_tokenizer is a generated GoMock package.
Package mock_tokenizer is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL