Skip to content

tidbcloud/car-sales-insight

Repository files navigation

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 git@github.com: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