]> git.lizzy.rs Git - frontend-next.git/blob - README.md
Use encodeURIComponent to encode language for URI
[frontend-next.git] / README.md
1 # create-svelte
2
3 Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).
4
5 ## Creating a project
6
7 If you're seeing this, you've probably already done this step. Congrats!
8
9 ```bash
10 # create a new project in the current directory
11 npm init svelte@next
12
13 # create a new project in my-app
14 npm init svelte@next my-app
15 ```
16
17 > Note: the `@next` is temporary
18
19 ## Developing
20
21 Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
22
23 ```bash
24 npm run dev
25
26 # or start the server and open the app in a new browser tab
27 npm run dev -- --open
28 ```
29
30 ## Building
31
32 To create a production version of your app:
33
34 ```bash
35 npm run build
36 ```
37
38 You can preview the production build with `npm run preview`.
39
40 > To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.