Skip to content

Feature/backend#1

Open
kvnqsley wants to merge 5 commits intoThe-Engineer-Network:mainfrom
kvnqsley:feature/backend
Open

Feature/backend#1
kvnqsley wants to merge 5 commits intoThe-Engineer-Network:mainfrom
kvnqsley:feature/backend

Conversation

@kvnqsley
Copy link
Copy Markdown

🚀 Feature: Backend Initialization & Authentication Controllers
This pull request sets up the foundational structure for the backend of the Engiconnect project and introduces core authentication functionality.

📁 Project Structure Initialization
Configured Express server with middleware (CORS, Morgan, rate limiter, error handling).

Established modular folder structure for controllers, routes, middlewares, models, and validators.

Integrated Supabase client for database operations.

Added environment variable support via dotenv.

🔐 Authentication Controllers
Login: Verifies wallet signature, creates user if not found, issues JWT access and refresh tokens.

Refresh: Validates refresh token and issues new access token.

ENS Verification: Resolves ENS domain and verifies ownership via signature.

✅ Routes & Validation
Added /auth/login, /auth/refresh, and /auth/verify-ens endpoints.

Implemented request validation using Zod schemas.

🛠️ Miscellaneous
Installed dependencies: express, ethers, jsonwebtoken, @supabase/supabase-js, zod, etc.

Added graceful shutdown logic and basic health check endpoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant