https://github.com/carllosnc/one-stack
fast way to prototype full stack apps with Next.js, React, Tailwind, and Drizzle ORM
https://github.com/carllosnc/one-stack
bun drizzle-orm nextjs sqlite typescript
Last synced: about 1 month ago
JSON representation
fast way to prototype full stack apps with Next.js, React, Tailwind, and Drizzle ORM
- Host: GitHub
- URL: https://github.com/carllosnc/one-stack
- Owner: carllosnc
- Created: 2025-01-06T01:05:37.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-01-27T19:38:10.000Z (over 1 year ago)
- Last Synced: 2025-01-27T19:52:12.070Z (over 1 year ago)
- Topics: bun, drizzle-orm, nextjs, sqlite, typescript
- Language: TypeScript
- Homepage:
- Size: 259 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://github.com/carllosnc/one-stack/actions/workflows/bun.yml)
# One Stack
>fast way to prototype full stack apps with Next.js, React, Tailwind, and Drizzle ORM
## What's in the box?
- Next.js 15
- React 19
- Tailwind CSS
- Drizzle ORM
- Auth.js
- Bun
- Shadcn/ui
## First steps
Before you start, you need to create a `.env.local` file in the root of the project and add the following variables:
**Turso database connection**
```
NEXT_PUBLIC_TURSO_DATABASE_URL=""
NEXT_PUBLIC_TURSO_AUTH_TOKEN=""
```
**Auth.js config**
```
AUTH_DRIZZLE_URL=""
AUTH_SECRET=""
```
**Google auth config**
```
AUTH_GOOGLE_ID=""
AUTH_GOOGLE_SECRET=""
```
**Generate auth secret**
```bash
bunx auth secret
```
Google auth is the default auth provider.
## Development
**Database**
To start the database, you need to run the following command:
```bash
turso dev
```
This will start the database in development mode. To more details about turso, you can check the [turso documentation](https://docs.turso.tech/introduction).
**Database generation and migration**
To generate the database schema and run the migration, you need to run the following commands:
Generation
```bash
bun run db:generate
```
Migration
```bash
bun run db:migrate
```
Drizzle studio
```bash
bun run db:studio
```
The commands above are abstraction of drizzle-kit commands, you can check the [drizzle-kit documentation](https://orm.drizzle.team/docs/kit-overview) for more details.
**Server**
To start the server:
```bash
bun run dev
```
## Test
To run the tests:
```bash
bun run test
```
This commands is configured to run with the correct environment variables file.
---
Carlos Costa @ 2025