Categorygithub.com/nikitaSstepanov/url-shortener
repository
0.0.0-20241214191359-2702e0d3ed91
Repository: https://github.com/nikitasstepanov/url-shortener.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# README

Hi there 👋

It is url shortener

Description

It is url shortener. It allows you to shorten links and create custom aliases.

Launch

  1. Set up configuration of the project (config/config.yaml) or use default values.

  2. Set up configuration of docker (docker-compose.yaml) if you use it.

  3. If you don`t use docker, raise the postgres and redis databases in advance (do not forget that app will try to connect to the dbs with the environment specified in config/config.yaml).

  4. Set up the environment (create ".env" file) according to the example in the ".env.example" file or rename ".env.example" to ".env" to use default values.

  5. Navigate to the root of the project in the terminal and enter the command:

    docker compose up
    

    If you don`t use docker, enter:

    go run ./cmd/url-shortener/main.go