···8889- [Node.js](https://nodejs.org/en/) >= 20.0.0
90- [pnpm](https://pnpm.io/) >= 8.6.2
009192### Setup
93941. Clone the repository
9596- ```sh
97- git clone https://github.com/openstatushq/openstatus.git
98- ```
991002. Install dependencies
101102- ```sh
103- pnpm install
104- ```
105106-3. Set up your .env file
107108- From `apps/web` and `packages/db`, you will find .env.example. Create your
109- own copy.
110111-4. Follow the steps to run your sqlite database locally inside of
112- [README.md](https://github.com/openstatusHQ/openstatus/blob/main/packages/db/README.md)
0113114-5. Start the development with the below command
115116- ```sh
117- pnpm dev
118- ```
119120- It will:
121122- - run the web app on port `3000`
123- - run the api server on port `3001`
124- - run the docs on port `3002`
125126-6. See the results:
127128- open [http://localhost:3000](http://localhost:3000) for the web app
129-- open [http://localhost:3001/ping](http://localhost:3001/ping) for the api
130- server health check
131-- open [http://localhost:3002](http://localhost:3002) for the docs
132133### Videos
134
···8889- [Node.js](https://nodejs.org/en/) >= 20.0.0
90- [pnpm](https://pnpm.io/) >= 8.6.2
91+- [Bun](https://bun.sh/)
92+- [Turso CLI](https://docs.turso.tech/quickstart)
9394### Setup
95961. Clone the repository
9798+```sh
99+git clone https://github.com/openstatushq/openstatus.git
100+```
1011022. Install dependencies
103104+```sh
105+pnpm install
106+```
107108+3. Initialize the development environment
109110+Launch the database in one terminal:
0111112+```sh
113+turso dev --db-file openstatus-dev.db
114+```
115116+In another terminal, run the following command:
117118+```sh
119+pnpm dx
120+```
121122+4. Launch the web app
123124+```sh
125+pnpm dev:web
126+```
127128+5. See the results:
129130- open [http://localhost:3000](http://localhost:3000) for the web app
000131132### Videos
133
···2title: Getting Started
3---
45-import { Aside } from "@astrojs/starlight/components";
6-7-<Aside>WIP</Aside>
89## Setup
1011-1. Clone the repository and open the created directory
1213- ```sh
14- git clone https://github.com/openstatushq/openstatus.git
15- cd openstatus
16- ```
17182. Install dependencies
1920- ```sh
21- pnpm install
22- ```
2324-3. Database setup
25-26-We are using Turso for the database to make it work locally you need to install
27-it and run it.
28-29-If you are on a mac install it with [Homebrew](https://brew.sh/)
30-3132-Here is the official Turso
33-[installation guide](https://docs.turso.tech/reference/turso-cli)
3435-4. Install Bun
36-All the up to date information are on the official [Bun website](https://bun.sh/)
03738-4. Set up the dev environment
3940```sh
41- pnpm dx
42```
43-5. Start the development server
04445```sh
46- pnpm dev:web
47```
4849-6. Open your browser and navigate to [http://localhost:3000](http://localhost:3000)0000000
···2title: Getting Started
3---
400056## Setup
78+1. Clone the repository
910+```sh
11+git clone https://github.com/openstatushq/openstatus.git
12+```
013142. Install dependencies
1516+```sh
17+pnpm install
18+```
1920+3. Initialize the development environment
0000002122+Launch the database in one terminal:
02324+```sh
25+turso dev --db-file openstatus-dev.db
26+```
2728+In another terminal, run the following command:
2930```sh
31+pnpm dx
32```
33+34+4. Launch the web app
3536```sh
37+pnpm dev:web
38```
3940+It will:
41+42+- run the web app on port `3000`
43+44+5. See the results:
45+46+- open [http://localhost:3000](http://localhost:3000) for the web app
47+
···7374If you want to run Turso locally you can follow the instructions in the
75[Turso CLI](https://docs.turso.tech/reference/turso-cli)
00000
···7374If you want to run Turso locally you can follow the instructions in the
75[Turso CLI](https://docs.turso.tech/reference/turso-cli)
76+77+78+### Installing Bun
79+80+To install Bun, visit the official website [https://bun.sh/](https://bun.sh/)
+5-5
packages/tinybird/src/client.ts
···9 private readonly tb: Client;
1011 constructor(token: string) {
12- // if (process.env.NODE_ENV === "development") {
13- // this.tb = new NoopTinybird();
14- // } else {
15- this.tb = new Client({ token });
16- // }
17 }
1819 public get homeStats() {
···9 private readonly tb: Client;
1011 constructor(token: string) {
12+ if (process.env.NODE_ENV === "development") {
13+ this.tb = new NoopTinybird();
14+ } else {
15+ this.tb = new Client({ token });
16+ }
17 }
1819 public get homeStats() {