-
Notifications
You must be signed in to change notification settings - Fork 0
Docs/update readme and contributors #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| # Contributing Guidelines 🤝 | ||
|
|
||
| Добро пожаловать в проект! Чтобы поддерживать высокое качество кода и чистоту истории коммитов, мы следуем строгим стандартам разработки. | ||
|
|
||
| ## 1. Workflow (Работа с ветками) | ||
|
|
||
| Мы используем **Trunk-based** подход. Это означает, что `main` (trunk) — единственный источник истины. | ||
|
|
||
| - **Запрет на прямые пуши:** Пуш напрямую в `main` (или `master/dev`) строго запрещен. Любые изменения вносятся **только через Pull Request (PR)**. | ||
| - **Code Review:** Каждый PR должен пройти обязательное код-ревью перед мерджем. | ||
| - **Short-lived branches:** Ветки должны быть короткими (1-2 дня). | ||
|
|
||
| **Правила именования веток:** | ||
|
|
||
| - `feat/` — для новых функциональных возможностей. | ||
| - `fix/` — для исправления багов. | ||
| - `refactor/` — для переписывания кода без изменения логики. | ||
| - `docs/` — для обновления документации. | ||
|
|
||
| ## 2. Commit Message Convention | ||
|
|
||
| Мы используем стандарт **Conventional Commits**. Это позволяет автоматически генерировать логи изменений и поддерживать историю в чистоте. | ||
|
|
||
| **Формат:** `<type>(<scope>): <description>` | ||
|
|
||
| - **Пример:** `feat(database): add user entity and drizzle migrations` | ||
| - **Пример:** `fix(auth): resolve jwt expiration issue` | ||
|
|
||
| ## 3. Разработка и стандарты кода | ||
|
|
||
| - **Validation (Zod):** Использование схем **Zod** для эндпоинтов (DTO) обязательно. Без них не будет работать валидация данных и автоматическая типизация в Swagger. | ||
| - **Linting & Formatting:** Перед каждым коммитом обязательно запускайте `pnpm lint` и `pnpm format`. Код, не прошедший проверку линтером, не будет принят. | ||
| - **Drizzle Migrations:** **Никаких ручных изменений в базе данных.** Все изменения схем должны сопровождаться миграциями. | ||
| - Команда: `pnpm db:generate` | ||
| - **No God-commits:** Разделяйте свои изменения на небольшие логические коммиты. | ||
|
|
||
| ## 4. Pull Request (PR) Process | ||
|
|
||
| Прежде чем отправить PR, убедитесь, что: | ||
|
|
||
| 1. **Self-Review:** Вы сами перечитали свой код и удалили отладочные логи (`console.log`). | ||
| 2. **Checks:** Все автоматические тесты (`pnpm test`) и линтер проходят успешно. | ||
| 3. **Description:** В описании PR четко указано, что именно было сделано и зачем. | ||
|
|
||
| _PR не принимается, если тесты или линтер упали на этапе CI._ | ||
|
|
||
| ## 5. Local Setup | ||
|
|
||
| Для быстрой настройки локального окружения обратитесь к разделу **Quick Start** в [README.md](./README.md). | ||
|
|
||
| Краткий список команд для старта: | ||
|
|
||
| ```bash | ||
| pnpm install | ||
| cp .env.example .env | ||
| pnpm db:generate | ||
| pnpm db:migrate | ||
| pnpm start:dev | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,55 @@ | ||
| # task-tracker-backend | ||
| Task-tracker-backend | ||
| # Task Tracker Backend 🚀 | ||
|
|
||
| Современная лёгкая open-source система управления IT-проектами (альтернатива Jira/Yandex Tracker). Бэкенд построен на высокопроизводительном стеке с упором на типизацию и скорость разработки. | ||
|
|
||
| **Статус:** `In Development` | ||
|
|
||
| ## Технологический стек | ||
|
|
||
| - **Runtime:** Node.js 22+ (pnpm) | ||
| - **Framework:** NestJS 11 (**Fastify**) | ||
| - **Database:** PostgreSQL + **Drizzle ORM** | ||
| - **Validation:** Zod | ||
| - **API:** Swagger (OpenAPI) | ||
| - **Infrastructure:** Docker (Multi-stage builds) | ||
| - **Testing:** Vitest | ||
|
|
||
| ## Quick Start | ||
|
|
||
| ### 1. Окружение | ||
|
|
||
| Скопируйте пример файла окружения и настройте переменные (БД, API ключи DeepSeek): | ||
|
|
||
| ```bash | ||
| cp .env.example .env | ||
| ``` | ||
|
|
||
| ### 2. Запуск через Docker (Рекомендуется) | ||
|
|
||
| Проект полностью контейнеризирован: | ||
|
|
||
| ```bash | ||
| docker-compose up --build | ||
| ``` | ||
|
|
||
| ### 3. Локальный запуск | ||
|
|
||
| Если вы хотите запустить проект без Docker: | ||
|
|
||
| ```bash | ||
| pnpm install | ||
| pnpm db:generate | ||
| pnpm db:migrate | ||
| pnpm start:dev | ||
| ``` | ||
|
|
||
| ## API Documentation | ||
|
|
||
| После запуска проекта документация доступна по адресу: | ||
|
|
||
| **http://localhost:3000/api/v1/docs** | ||
|
|
||
| ## Infrastructure | ||
|
|
||
| - CI/CD: Настроены GitHub Actions для автоматической проверки типов, линтинга и запуска тестов. | ||
| - Docker: Используются оптимизированные multi-stage образы для минимизации размера production-билда. | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.