Skip to content

Commit

Permalink
fix: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
MowlCoder committed Feb 15, 2024
1 parent 96a64ef commit 7b5a127
Showing 1 changed file with 22 additions and 21 deletions.
43 changes: 22 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,33 @@
# go-musthave-shortener-tpl
# ✂️ URL Shortener

Шаблон репозитория для трека «Сервис сокращения URL».
## 💡 Overview
It is server api project that allows you to short urls, to get your shortened urls and to redirect from short url to original url.

## Начало работы
## 💻 Technologies

1. Склонируйте репозиторий в любую подходящую директорию на вашем компьютере.
2. В корне репозитория выполните команду `go mod init <name>` (где `<name>` — адрес вашего репозитория на GitHub без префикса `https://`) для создания модуля.
- **Language:** Go
- **Database:** Postgres
- **Documentation:** godoc, Swagger 2.0
- **Protocols:** HTTP, gRPC

## Обновление шаблона
## ▶️ Getting started

Чтобы иметь возможность получать обновления автотестов и других частей шаблона, выполните команду:
To get started with this app, follow these steps:

1. **Clone the Repository:**
```shell
git clone https://github.com/MowlCoder/go-url-shortener.git
```
git remote add -m main template https://github.com/Yandex-Practicum/go-musthave-shortener-tpl.git
2. **Install Dependencies:**
```shell
go get .
```

Для обновления кода автотестов выполните команду:

```
git fetch template && git checkout template/main .github
3. **Configure Settings:** Create an `.env` file and populate them based on the `.env.example` file
4. **Run application:**
```shell
make server
```

Затем добавьте полученные изменения в свой репозиторий.

## Запуск автотестов

Для успешного запуска автотестов называйте ветки `iter<number>`, где `<number>` — порядковый номер инкремента. Например, в ветке с названием `iter4` запустятся автотесты для инкрементов с первого по четвёртый.

При мёрже ветки с инкрементом в основную ветку `main` будут запускаться все автотесты.
## 📝 Documentation

Подробнее про локальный и автоматический запуск читайте в [README автотестов](https://github.com/Yandex-Practicum/go-autotests).
API documentation is available in the [docs](/docs) directory.

0 comments on commit 7b5a127

Please sign in to comment.