Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# ================
# Базовые настройки
# ================
NODE_ENV=development
PORT=3000

# ====================
# Настройки PostgreSQL
# ====================
DB_HOST=localhost
DB_PORT=5432
DB_NAME=space-sql
DB_USER=postgres
DB_PASSWORD=your_password
DB_URL=postgres://${DB_USER}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_NAME}

# ====================
# Настройки API сервера
# ====================
API_PORT=8080
API_BASE_URL=http://localhost:8080
JWT_SECRET=your_jwt_secret_here
JWT_EXPIRES_IN=30d

# ======================
# Настройки фронтенда
# ======================
REACT_APP_API_URL=http://localhost:8080
REACT_APP_GA_TRACKING_ID=UA-XXXXX-Y

# =====================
# Внешние API ключи
# =====================
# SENDGRID_API_KEY=your_sendgrid_key
# AWS_ACCESS_KEY_ID=your_aws_key
# AWS_SECRET_ACCESS_KEY=your_aws_secret

# ==============
# Флаги функций
# ==============
# FEATURE_NEW_AUTH=true
# MAINTENANCE_MODE=false
77 changes: 77 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next

# Environment files
.env
.env.local
.env.development
.env.production
.env.test

# IDE
.idea/
*.iml
Expand All @@ -24,3 +31,73 @@ logs/
*.swp
*.swo
/.idea/

# Environment
.env*
!.env.example

# Dependencies
node_modules/
.frontend/node_modules
backend/node_modules

# Build artifacts
build/
dist/
.frontend/build
backend/target

# IDE
*.suo
*.ntvs*
*.njsproj
*.sln

# Logs
logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# System Files
.DS_Store
Thumbs.db

# Testing
coverage/

# Editor
*~
\#*
.#*

# OS
ehthumbs.db

# Java
!.mvn/wrapper/maven-wrapper.jar

# Database
*.db
*.sqlite

# Visual Studio Code
.history/

# IntelliJ
out/

# React Native
.repo/

# Gradle
.gradle/

# VS Code
bin/

# NetBeans
nbproject/private/
nbbuild/
nbdist/
.nb-gradle/
Loading