removed db from tracked files and added readme
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -23,6 +23,7 @@ vite.config.js.timestamp-*
|
|||||||
vite.config.ts.timestamp-*
|
vite.config.ts.timestamp-*
|
||||||
# SQLite
|
# SQLite
|
||||||
*.db
|
*.db
|
||||||
.session
|
|
||||||
scripts/data/*
|
scripts/data/*
|
||||||
.session
|
.session
|
||||||
|
local.db
|
||||||
|
|||||||
43
README.md
43
README.md
@@ -1,42 +1,7 @@
|
|||||||
# sv
|
# SCORE SYSTEM FOR WHATEVER
|
||||||
|
|
||||||
Everything you need to build a Svelte project, powered by [`sv`](https://github.com/sveltejs/cli).
|
Run with `bun run dev`
|
||||||
|
|
||||||
## Creating a project
|
Build database from csvs with `bun run db:push`
|
||||||
|
Seed database from csvs with `bun run db:seed`
|
||||||
|
|
||||||
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@0.15.2 create --template minimal --types ts --add tailwindcss="plugins:typography,forms" better-auth="demo:password" drizzle="database:sqlite+sqlite:libsql" --install bun score-system
|
|
||||||
```
|
|
||||||
|
|
||||||
## Developing
|
|
||||||
|
|
||||||
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
npm run dev
|
|
||||||
|
|
||||||
# or start the server and open the app in a new browser tab
|
|
||||||
npm run dev -- --open
|
|
||||||
```
|
|
||||||
|
|
||||||
## Building
|
|
||||||
|
|
||||||
To create a production version of your app:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
npm 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.
|
|
||||||
|
|||||||
Reference in New Issue
Block a user