init commit,

This commit is contained in:
louiscklaw
2025-05-28 09:55:51 +08:00
commit efe70ceb69
8042 changed files with 951668 additions and 0 deletions

View File

@@ -0,0 +1,59 @@
# 🚀 Mock Server Setup Guide
📖 **Official Documentation:** [Minimal Docs - Quick Start](https://docs.minimals.cc/quick-start)
## 📌 Prerequisites
- Node.js >=20
## Installation
**Using Yarn**
```sh
yarn install
yarn dev
```
**Using Npm**
```sh
npm i
npm run dev
```
## Default port
Mock server runs on: [http://localhost:7272](http://localhost:7272)
## Deploy on Vercel
- Step 1: Push code to GitHub
- Step 2: Create a new project on Vercel
- Step 3: Connect with GitHub
- Step 4: Select Framework preset: Next.js
- Step 5: Deploy
## Deploy on Cloudflare
- Step 1: Push code to GitHub
- Step 2: Create a new project on Cloudflare Pages
- Step 3: Connect with GitHub
- Step 4: Select Framework preset: Next.js
```sh
# Build command
npx @cloudflare/next-on-pages@1
# Build output directory
.vercel/output/static
```
- Step 5: Add Environment variables and deploy
```sh
NODE_VERSION=20
```
- Step 6: Configure Compatibility Flags: Workers & Pages > Project > Settings > Compatibility flags add `nodejs_compat`
- Step 7: Re-deploy