Daisy UI (#14)

* add dependency

* rename Input to TextInput and use daisy

* base styling

* storybook setup with tailwind and theme changer

* daisy buttons

* add flaticons

* text input to daisy

* Navbar to daisy

* login using daisy

* autodocs is... auto

* refactor Tabs to separate components

* move TextInput

* move button

* move navbar

* remove index

* move container

* move loader

* move tabs to navigation

* organize storybook hierarchy

* use card

* remove storybook dark mode

* README

* ignore db file

* ignore db

* prisma scripts

* format

* blyat

* fix redirect
This commit is contained in:
Baobeld 2024-12-19 21:20:21 -05:00 committed by GitHub
parent 992eb07f5c
commit 6ddaa69f69
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
69 changed files with 663 additions and 449 deletions

View file

@ -1,38 +1,69 @@
# sv
# Hestia
Everything you need to build a Svelte project, powered by [`sv`](https://github.com/sveltejs/cli).
Hestia is an early stage project
## Creating a project
If you're seeing this, you've probably already done this step. Congrats!
## Setup
```bash
# create a new project in the current directory
bunx sv create
# install dependencies
bun install
# create a new project in my-app
bunx sv create my-app
# set up local database
bun prisma:dev
```
## Developing
Once you've created a project and installed dependencies with `bun install`, start a development server:
Once you've created a project and installed dependencies, start a development server:
```bash
bun run dev
bun dev
# or start the server and open the app in a new browser tab
bun run dev -- --open
bun dev -- --open
# to use storybook for components development
bun storybook
# interact with local database
bun prisma:studio
```
> You can access the Yoga web-app at `/api/graphql`
## Building
To create a production version of your app:
```bash
bun run build
bun build
```
## Stack
- https://svelte.dev/docs/kit/introduction
- https://zod.dev/
- https://day.js.org/
### Frontend
- https://tailwindcss.com/
- https://www.flaticon.com/
- https://daisyui.com/
### Backend
- https://www.prisma.io/
- https://pothos-graphql.dev/
- https://the-guild.dev/graphql/yoga-server
- https://github.com/pinojs/pino
### Tools
- https://storybook.js.org/
- https://vite.dev/
- https://vitest.dev/
You can preview the production build with `bun run preview`.
> To deploy your app, you may need to install an [adapter](https://svelte.dev/docs/kit/adapters) for your target environment.