-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
126 additions
and
8,498 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
FROM oven/bun:1.0-slim as builder | ||
|
||
WORKDIR /app | ||
|
||
COPY package.json bun.lockb ./ | ||
|
||
RUN bun install --frozen-lockfile | ||
|
||
COPY . . | ||
|
||
RUN bun run build | ||
|
||
FROM oven/bun:1.0-slim | ||
|
||
WORKDIR /app | ||
|
||
COPY --from=builder /app/.output /app/.output | ||
COPY --from=builder /app/.nuxt /app/.nuxt | ||
COPY --from=builder /app/package.json /app/package.json | ||
|
||
EXPOSE 3000 | ||
|
||
ENV NODE_ENV=production | ||
|
||
CMD ["bun", "run", ".output/server/index.mjs"] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
run: | ||
@bun run dev | ||
|
||
build-client: | ||
@bun run generate | ||
@bunx serve .output/public | ||
|
||
build: | ||
@bun run build | ||
@bun .output/server/index.mjs | ||
|
||
format: | ||
@bunx biome format --write | ||
|
||
lint: | ||
@bunx biome lint --write ./app ./server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,16 @@ | ||
# Nuxt-Shadcn-Drizzle Starter | ||
# Nuxt 3 Starter Template | ||
|
||
This is a starter project for bootstrapping a Nuxt app with Shadcn-vue and Drizzle ORM, with Pinia for state | ||
management. | ||
A modern Nuxt 3 starter template with Drizzle ORM, Biome, Pinia, Docker, and Bun. This template provides a robust foundation for building full-stack applications with best practices and powerful tools. | ||
|
||
## Stack | ||
## 🚀 Stack | ||
|
||
Built using <img src="public/icon-green.png" alt="Nuxt Logo" width="30" height="30"> [Nuxt](https://nuxt.com/), <img src="public/icon-shadcn.png" alt="Shadcn Logo" width="30" height="30"> [Shadcn-vue](https://www.shadcn-vue.com/), <img src="public/icon-drizzle.png" alt="Drizzle Logo" width="30" height="30"> [Drizzle ORM](https://orm.drizzle.team/), <img src="public/icon-tailwind.png" alt="TailwindCSS Logo" width="30" height="30"> [TailwindCSS](https://tailwindcss.com/) | ||
- **[Nuxt 3](https://nuxt.com/)** - The Intuitive Vue Framework | ||
- **[Bun](https://bun.sh/)** - Fast JavaScript runtime & package manager | ||
- **[Drizzle ORM](https://orm.drizzle.team/)** - TypeScript ORM with powerful migrations | ||
- **[Biome](https://biomejs.dev/)** - Fast linter and formatter | ||
- **[Pinia](https://pinia.vuejs.org/)** - Intuitive state management | ||
- **[Docker](https://www.docker.com/)** - Containerization support | ||
|
||
## Setup | ||
## 📄 License | ||
|
||
1. Run `pnpm install` to install all dependencies. | ||
2. Create a .env file, and add `DB_URL`, `JWT_SECRET` respectively. | ||
3. Setup your preferred SQL database in `database/`, this example uses Postgres | ||
4. Run `docker compose up -d` if an instance is preferred. | ||
5. Run `pnpm dev` to start the application | ||
|
||
## License | ||
|
||
Nuxt-Shadcn-Drizzle Starter is licensed under the [MIT License](https://github.com/risv1/nuxt-shadcn-drizzle-starter/blob/main/LICENSE). | ||
MIT License - feel free to use this template for any project! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", | ||
"vcs": { | ||
"enabled": false, | ||
"clientKind": "git", | ||
"useIgnoreFile": false | ||
}, | ||
"files": { | ||
"ignoreUnknown": false, | ||
"ignore": [] | ||
}, | ||
"formatter": { | ||
"enabled": true, | ||
"indentStyle": "tab" | ||
}, | ||
"organizeImports": { | ||
"enabled": true | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": true | ||
} | ||
}, | ||
"javascript": { | ||
"formatter": { | ||
"quoteStyle": "double" | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.