generateur_v3/frontend/README.md

39 lines
944 B
Markdown
Raw Normal View History

2022-12-27 18:26:05 +01:00
# create-svelte
2022-09-16 21:50:55 +02:00
2022-12-27 18:26:05 +01:00
Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).
2022-09-16 21:50:55 +02:00
2022-12-27 18:26:05 +01:00
## Creating a project
2022-09-16 21:50:55 +02:00
2022-12-27 18:26:05 +01:00
If you're seeing this, you've probably already done this step. Congrats!
2022-09-16 21:50:55 +02:00
2022-12-27 18:26:05 +01:00
```bash
# create a new project in the current directory
npm create svelte@latest
2022-09-16 21:50:55 +02:00
2022-12-27 18:26:05 +01:00
# create a new project in my-app
npm create svelte@latest my-app
```
2022-09-16 21:50:55 +02:00
2022-12-27 18:26:05 +01:00
## Developing
2022-09-16 21:50:55 +02:00
2022-12-27 18:26:05 +01:00
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
2022-09-16 21:50:55 +02:00
2022-12-27 18:26:05 +01:00
```bash
npm run dev
2022-09-16 21:50:55 +02:00
2022-12-27 18:26:05 +01:00
# or start the server and open the app in a new browser tab
npm run dev -- --open
```
2022-09-16 21:50:55 +02:00
2022-12-27 18:26:05 +01:00
## Building
2022-09-16 21:50:55 +02:00
2022-12-27 18:26:05 +01:00
To create a production version of your app:
2022-09-16 21:50:55 +02:00
2022-12-27 18:26:05 +01:00
```bash
npm run build
```
2022-09-16 21:50:55 +02:00
2022-12-27 18:26:05 +01:00
You can preview the production build with `npm run preview`.
2022-09-16 21:50:55 +02:00
2022-12-27 18:26:05 +01:00
> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.