Backend API for HanoServices - A digital platform that helps Rwandan citizens quickly find reliable service providers.
- Runtime: Node.js
- Language: TypeScript
- Framework: Express.js
- Database: PostgreSQL
- Architecture: Monolithic (modular design)
src/
├── config/ # Configuration files
├── database/ # Database connection and migrations
├── models/ # Database models/schemas
├── routes/ # API routes
├── controllers/ # Request handlers
├── middleware/ # Custom middleware (auth, validation, etc.)
├── services/ # Business logic
├── utils/ # Utility functions
├── types/ # TypeScript type definitions
└── index.ts # Application entry point
- Node.js (v18 or higher)
- PostgreSQL (v12 or higher)
- npm or yarn
-
Clone the repository
-
Install dependencies:
npm install
-
Set up environment variables:
cp .env.example .env
Edit
.envwith your configuration -
Set up the database:
npm run db:migrate npm run db:seed
-
Start the development server:
npm run dev
See .env.example for required environment variables.
API documentation will be available at /api/docs (to be implemented).
- User Registration & Authentication (Phone + OTP)
- Service Provider Management
- Service Categories
- Search & Filtering (Location-based)
- Booking System
- Reviews & Ratings
- Provider Verification
- Admin Dashboard
- Payment Integration (V2)
ISC