feat: 城中村租房平台 - 租客浏览、房东发布房源、图片上传
This commit is contained in:
51
README.md
51
README.md
@@ -1,36 +1,41 @@
|
||||
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
|
||||
# 城中村租房平台
|
||||
|
||||
## Getting Started
|
||||
一个简洁的城中村租房信息平台,支持房东发布房源、租客浏览联系。
|
||||
|
||||
First, run the development server:
|
||||
## 功能特点
|
||||
|
||||
- **租客端**:无需登录,直接浏览和搜索房源
|
||||
- **房东端**:简单密码认证,发布和管理房源
|
||||
- **移动端优先**:适配手机访问的响应式设计
|
||||
|
||||
## 技术栈
|
||||
|
||||
- Next.js 16 + TypeScript
|
||||
- TailwindCSS
|
||||
- JSON文件存储(无需数据库)
|
||||
|
||||
## 快速开始
|
||||
|
||||
```bash
|
||||
npm install
|
||||
npm run dev
|
||||
# or
|
||||
yarn dev
|
||||
# or
|
||||
pnpm dev
|
||||
# or
|
||||
bun dev
|
||||
```
|
||||
|
||||
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
|
||||
访问 http://localhost:3000
|
||||
|
||||
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
|
||||
## 页面说明
|
||||
|
||||
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
|
||||
- `/` - 租客浏览页面(首页)
|
||||
- `/house/[id]` - 房屋详情页
|
||||
- `/owner` - 房东登录/注册
|
||||
- `/owner/dashboard` - 房东管理后台
|
||||
|
||||
## Learn More
|
||||
## 数据存储
|
||||
|
||||
To learn more about Next.js, take a look at the following resources:
|
||||
数据存储在 `data/` 目录下的 JSON 文件中:
|
||||
- `data/houses.json` - 房源数据
|
||||
- `data/users.json` - 房东账号数据
|
||||
|
||||
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
|
||||
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
|
||||
## 部署
|
||||
|
||||
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
|
||||
|
||||
## Deploy on Vercel
|
||||
|
||||
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
|
||||
|
||||
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
|
||||
本项目可部署到 Vercel,无需额外配置数据库。
|
||||
|
||||
Reference in New Issue
Block a user