Car Sales Insight
September 20, 2023 ยท View on GitHub
Insight car sales trends using TiDB serverless driver and edge functions. Try out the live demo.

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
- Clone the code
git clone git@github.com:tidbcloud/car-sales-insight.git
cd car-sales-insight
- Run the frontend
npm install
npm run dev
Deploy on the Vercel
Deploy with one click: