File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed
Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change 1+ # AI Analytics Template
2+
3+ This is a template for a Logs Explorer web application. It is built with Next.js and Tinybird.
4+
5+ Use this template to bootstrap a multi-tenant, user-facing LLM analytics dashboard and cost calculator. Fork it and make it your own!
6+
7+ ## Live Demo
8+
9+ https://ai-analytics.tinybird.app
10+
11+ ## Local Development
12+
13+ Get started by forking the GitHub repository and then customizing it to your needs.
14+
15+ Start Tinybird locally:
16+
17+ ```
18+ curl -L https://tbrd.co/fwd | sh
19+ cd tinybird
20+ tb local start
21+ tb login
22+ tb dev
23+ token ls # copy the read_pipes token
24+ ```
25+
26+ Configure the Next.js application:
27+
28+ ```
29+ cd dashboard/ai-analytics
30+ cp .env.example .env
31+ Edit the .env file with your Tinybird API key and other configuration.
32+ ```
33+
34+ ```
35+ NEXT_PUBLIC_TINYBIRD_API_KEY=<YOUR_TINYBIRD_READ_PIPES_TOKEN>
36+ NEXT_PUBLIC_TINYBIRD_API_URL=http://localhost:7181
37+ ```
38+
39+ Start the Next.js application:
40+
41+ ```
42+ cd dashboard/ai-analytics
43+ npm install
44+ npm run dev
45+ ```
46+
47+ Open the application in your browser:
48+
49+ ```
50+ http://localhost:3000
51+ ```
52+
53+ To use the AI features, click on Settings in the dashboard and in put an Open AI API key
You can’t perform that action at this time.
0 commit comments