NextNodeTemplate/SETUP.md

73 lines
1.7 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Настройка проекта после клонирования
## Быстрый старт
1. **Переименуйте проект**
- Обновите `package.json` в `frontend/` и `backend/`
- Обновите название в `README.md`
- Обновите `ecosystem.config.js` (имена процессов PM2)
2. **Установите зависимости**
```powershell
# Frontend
cd frontend
npm install
# Backend
cd ../backend
npm install
```
3. **Настройте переменные окружения**
Создайте файлы:
- `frontend/.env.local` (опционально)
- `backend/.env` (если нужно)
4. **Запустите проект**
```powershell
# Терминал 1 - Frontend
cd frontend
npm run dev
# Терминал 2 - Backend
cd backend
node server.js
```
5. **Настройте Git**
```powershell
git init
git add .
git commit -m "Initial commit"
git remote add origin <your-repository-url>
git push -u origin main
```
6. **Создайте ветку dev**
```powershell
git checkout -b dev
git push -u origin dev
```
## Настройка сервера
1. Обновите информацию в `docs/PROJECT_RULES.md`:
- IP сервера
- Пользователь
- Путь проекта
- Имена процессов PM2
2. Настройте `ecosystem.config.js` под ваши нужды
3. На сервере установите зависимости и соберите проект
## Готово!
Теперь можно начинать разработку. Все правила и стандарты описаны в `docs/PROJECT_RULES.md`