https://github.com/bambooom/nocodb-example
https://github.com/bambooom/nocodb-example
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bambooom/nocodb-example
- Owner: bambooom
- Archived: true
- Created: 2022-10-21T12:40:55.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-23T05:18:34.000Z (over 3 years ago)
- Last Synced: 2025-07-04T19:49:34.594Z (11 months ago)
- Language: Vue
- Homepage: https://my-tinoco.vercel.app/
- Size: 6.02 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fbambooom%2Fnocodb-example&project-name=nocodb-tidb-starter&repo-name=nocodb-example&demo-title=TiDB+NocoDB+Starter&demo-description=A+NocoDB+instance+using+TiDB+as+scalable+DB&demo-url=https%3A%2F%2Fnocodb-example.vercel.app)
# Nuxt 3 Minimal Starter
Look at the [nuxt 3 documentation](https://v3.nuxtjs.org) to learn more.
## Setup
Make sure to install the dependencies:
```bash
# yarn
yarn install
# npm
npm install
# pnpm
pnpm install --shamefully-hoist
```
## Development Server
Start the development server on http://localhost:3000
```bash
npm run dev
```
## Production
Build the application for production:
```bash
npm run build
```
Locally preview production build:
```bash
npm run preview
```
Checkout the [deployment documentation](https://v3.nuxtjs.org/guide/deploy/presets) for more information.
## Server API
尝试利用 vercel serverless function 功能提供 server API,
有 pingcap 提供的例子:[tidb-prisma-vercel-demo](https://github.com/pingcap/tidb-prisma-vercel-demo/tree/main/pages/api)
但此处 nocodb 使用的是 nuxtjs,需要使用 [server directory](https://v3.nuxtjs.org/guide/directory-structure/server#server-directory) 实现。
前端代码里现在使用的是 [nocodb-sdk](https://github.com/nocodb/nocodb/tree/develop/packages/nocodb-sdk),考虑直接替换成 tidb-prisma-vercel-demo 中
实现的直接操作数据库,或者把 [nocodb 本体代码](https://github.com/nocodb/nocodb/tree/develop/packages/nocodb)重新包装成一个单独的 express app。