Skip to content

Commit 7275809

Browse files
committed
chore: expand readme
1 parent 2849098 commit 7275809

File tree

3 files changed

+98
-14
lines changed

3 files changed

+98
-14
lines changed

README.md

+96-12
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,72 @@
1-
# init
1+
<p align="center">
2+
<h1 align="center">🧬 <code>init</code></h1>
23

3-
A monorepo for building everywhere.
4+
<p align="center">
5+
<em><strong>Start once, ship everything.</strong></em>
6+
</p>
7+
</p>
48

5-
Contains:
9+
An opinionated monorepo starter kit for building apps everywhere: web, mobile, desktop, and more.
610

7-
- Web application using Next.js
8-
- Mobile application using Expo
9-
- APIs using Hono & Cloudflare Workers
10-
- Desktop application using Tauri, Vite and Tanstack Router
11-
- Browser extension using WXT
12-
- Documentation site using Next.js + Fumadocs
11+
## What's included
1312

14-
## Development
13+
- Web application using [Next.js](https://nextjs.org/)
14+
- Documentation site using [Fumadocs](http://fumadocs.vercel.app)
15+
- Mobile application using [Expo](https://expo.dev/)
16+
- API using [Hono](https://hono.dev/), built to be deployed on [Cloudflare Workers](https://workers.cloudflare.com/)
17+
- Desktop application using [Tauri](https://tauri.app/)
18+
- Browser extension using [WXT](https://wxt.dev/)
19+
20+
## Prerequisites
21+
22+
- We use [pnpm](https://pnpm.io/) as our package manager.
23+
- You'll need Nodejs v22 or higher installed.
24+
- You'll need Docker installed for running the database and Redis. I recommend using [OrbStack](https://orbstack.dev/) for managing your containers.
25+
26+
## Getting started
27+
28+
1. Install the dependencies using `pnpm`:
29+
30+
```bash
31+
pnpm install
32+
```
33+
34+
2. Start your local services using `docker`.
35+
36+
```bash
37+
pnpm docker:up
38+
```
39+
40+
3. Run the `setup-env` script to create the environment files:
41+
42+
```bash
43+
pnpm env:setup
44+
```
45+
46+
4. Start the development server:
47+
48+
```bash
49+
pnpm dev
50+
```
51+
52+
Since this monorepo has a lot of applications and packages you may not need for your project, you can run the `setup-template` script to select which workspaces you want to keep:
53+
54+
```bash
55+
pnpm template:setup
56+
```
1557

16-
To start the development server, run `pnpm dev` on the root directory.
58+
If you later want to add or remove workspaces, you can use the following commands:
59+
60+
```bash
61+
pnpm workspace:add # Adds a workspace from the template to the project
62+
pnpm workspace:remove # Removes a workspace from the project
63+
```
1764

1865
### Ports
1966

20-
Apps run in the 3000-3999 range. Packages run in the 8000-8999 range.
67+
#### Apps
68+
69+
Apps run in the 3000-3999 range.
2170

2271
- Web: 3000
2372
- API: 3001
@@ -26,5 +75,40 @@ Apps run in the 3000-3999 range. Packages run in the 8000-8999 range.
2675
- Extension: 3004
2776
- Docs: 3005
2877

78+
#### Packages
79+
80+
Packages run in the 8000-8999 range.
81+
82+
- Redis: 8079
83+
- Database: 8080
2984
- Email: 8081
3085
- Queue: 8288
86+
87+
## Development
88+
89+
### Common Commands
90+
91+
Here are the most common commands you'll use during development:
92+
93+
- `pnpm dev` - Start all applications in development mode
94+
- `pnpm build` - Build all applications
95+
- `pnpm lint` - Run linting across the codebase using Biome
96+
- `pnpm format` - Format code using Biome
97+
- `pnpm typecheck` - Run TypeScript type checking
98+
- `pnpm check` - Run linting and formatting
99+
- `pnpm clean` - Clean build artifacts
100+
- `pnpm clean:all` - Deep clean (build artifacts, cache, node_modules)
101+
102+
If you want to run a command for a specific workspace, you can use the following syntax:
103+
104+
```bash
105+
pnpm <command> --filter <workspace>
106+
```
107+
108+
### Managing Dependencies
109+
110+
- `pnpm deps:check` - Check for outdated dependencies
111+
- `pnpm deps:update` - Update dependencies interactively
112+
- `pnpm deps:mismatch` - List version mismatches across the monorepo
113+
- `pnpm deps:sync` - Fix version mismatches automatically
114+
- `pnpm deps:graph` - Generate a dependency graph visualization

infra/local/docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ services:
2323
image: ghcr.io/tursodatabase/libsql-server:latest
2424
platform: linux/amd64
2525
ports:
26-
- "5432:8080"
26+
- "8080:8080"
2727
- "5000:5001"
2828
volumes:
2929
- ./.data/libsql:/var/lib/sqld

packages/db/.env.example

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
DATABASE_URL="http://127.0.0.1:5432"
1+
DATABASE_URL="http://127.0.0.1:8000"
22
DATABASE_AUTH_TOKEN="test-token"
33
RUN_PRODUCTION_MIGRATIONS="false"

0 commit comments

Comments
 (0)