mirror of
https://github.com/samanhappy/mcphub.git
synced 2025-12-23 18:29:21 -05:00
1.2 KiB
1.2 KiB
Server Insure
A TypeScript server for insurance services.
Requirements
- Node.js (v14+)
- npm or yarn
Installation
- Clone the repository
- Install dependencies:
npm install - Create a
.envfile based on.env.example - Run the development server:
npm run dev
Available Scripts
npm run build- Compiles TypeScript to JavaScriptnpm run start- Starts the server from compiled JavaScriptnpm run dev- Starts the development server with hot reloadingnpm run lint- Runs ESLint to check for code qualitynpm run format- Formats code using Prettiernpm run test- Runs tests using Jest
Project Structure
mcphub/
├── src/ # Source code
│ ├── routes/ # API routes
│ └── index.ts # Entry point
├── dist/ # Compiled JavaScript (generated)
├── .env # Environment variables (create from .env.example)
├── package.json # Project dependencies and scripts
└── tsconfig.json # TypeScript configuration
API Endpoints
- GET /api/insurance - Get all insurance policies
- GET /api/insurance/:id - Get a specific insurance policy
- POST /api/insurance - Create a new insurance policy