Skip to content

Latest commit

 

History

History
47 lines (28 loc) · 1.22 KB

README.md

File metadata and controls

47 lines (28 loc) · 1.22 KB

Car Sales Insight

Insight car sales trends using TiDB serverless driver and edge functions. Try out the live demo.

image

How it works

The data is stored in a TiDB Serverless. You can find the schema and data here.

The backend is run on the edge (Vercel edge Function, Netlify Edge Function and Cloudflare Workers). You can find the codes here.

The frontend is developed by next.js and deployed on the Vercel. It should also be able to deploy on Netlify or Cloudflare Page.

Edge Solution

Learn best practices for connecting TiDB serverless from the edge:

Deploy

You can deploy the frontend locally or on the deployment platform.

Deploy Locally

  1. Clone the code
git clone [email protected]:tidbcloud/car-sales-insight.git
cd car-sales-insight
  1. Run the frontend
npm install
npm run dev

Deploy on the Vercel

Deploy with one click:

Deploy with Vercel