Skip to content

Latest commit

Β 

History

History
59 lines (43 loc) Β· 1.85 KB

File metadata and controls

59 lines (43 loc) Β· 1.85 KB

Development Documentation

Documentation for developers working on the Hiking Portal project.

πŸ“– Documentation in this Section

Architecture

Development Guides

πŸ—οΈ Project Architecture

Backend (Node.js + Express)

  • Controllers: Business logic for hikes, users, payments, etc.
  • Routes: API endpoints
  • Middleware: Authentication, validation
  • Database: PostgreSQL (Cloud SQL)

Frontend (React)

  • Components: Reusable UI components
  • Pages: Route-level components
  • Services: API integration
  • Contexts: Global state management

πŸ”§ Development Workflow

  1. Backend Changes: Edit controllers/routes β†’ Test locally β†’ Deploy
  2. Frontend Changes: Edit components β†’ Build β†’ Deploy to Firebase
  3. Database Changes: Create migration β†’ Test β†’ Deploy to production

πŸ“š Key Technologies

  • Backend: Node.js 18, Express, PostgreSQL, JWT
  • Frontend: React 18, Bootstrap 5, React Router
  • Infrastructure: Google Cloud Run, Firebase Hosting, Cloud SQL

πŸ§ͺ Testing

# Backend syntax check
cd backend
node -c server.js
node -c controllers/*.js
node -c routes/*.js

# Frontend build
cd frontend
npm run build

For deployment instructions, see ../deployment/README.md.