Update README
This commit is contained in:
parent
92d4f00d30
commit
5dcad7fa38
1 changed files with 20 additions and 26 deletions
46
README.md
46
README.md
|
@ -1,38 +1,32 @@
|
|||
# create-svelte
|
||||
# Shadow
|
||||
A blogging platform for Shadow Hosting.
|
||||
|
||||
Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/main/packages/create-svelte).
|
||||
## Development
|
||||
|
||||
## Creating a project
|
||||
Requirements:
|
||||
- NodeJS + Bun (issue with some dev things)
|
||||
- Golang 1.22
|
||||
|
||||
If you're seeing this, you've probably already done this step. Congrats!
|
||||
Install the JS dependencies with `bun install`, and go dependencies with `go get`
|
||||
|
||||
```bash
|
||||
# create a new project in the current directory
|
||||
npm create svelte@latest
|
||||
Create a config file and set `dev` to be true:
|
||||
```toml
|
||||
version = 1
|
||||
|
||||
# create a new project in my-app
|
||||
npm create svelte@latest my-app
|
||||
dev = true
|
||||
app_url = "http://192.168.1.40:3030"
|
||||
|
||||
[server]
|
||||
host = "0.0.0.0"
|
||||
port = 3030
|
||||
cloudflare_proxy = false
|
||||
```
|
||||
|
||||
## Developing
|
||||
|
||||
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
|
||||
|
||||
To start the development server (vite will run with it):
|
||||
```bash
|
||||
npm run dev
|
||||
|
||||
# or start the server and open the app in a new browser tab
|
||||
npm run dev -- --open
|
||||
go run *.go run
|
||||
```
|
||||
|
||||
## Building
|
||||
|
||||
To create a production version of your app:
|
||||
|
||||
```bash
|
||||
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://kit.svelte.dev/docs/adapters) for your target environment.
|
||||
No info at this time
|
Loading…
Reference in a new issue