Files

57 lines
1.2 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Daily-report
Svelte 5 + SvelteKit + shadcn-svelte + Tailwind v4, with Bun.
## Creating a project
If you're seeing this, you've probably already done this step. Congrats!
```sh
# create a new project
npx sv create my-app
```
To recreate this project with the same configuration:
```sh
# recreate this project
bun x sv create --template minimal --types ts --install bun . --no-dir-check
```
## Developing
Start the dev server (dependencies are installed with Bun):
```sh
bun run dev
# or open in browser
bun run dev -- --open
```
Add more shadcn-svelte components:
```sh
bun x shadcn-svelte@latest add card
bun x shadcn-svelte@latest add input
# or list: bun x shadcn-svelte@latest add --help
```
## Environment
Copy `.env.example` to `.env` and set:
- **FIREWORKS_API_KEY** (required) Fireworks AI API key for generating the daily report.
- **GITEA_TOKEN** (optional) Gitea token if you need to access private repos or avoid rate limits.
## Building
To create a production version of your app:
```sh
bun run build
```
You can preview the production build with `npm run preview`.
> To deploy your app, you may need to install an [adapter](https://svelte.dev/docs/kit/adapters) for your target environment.