|
1 | | -# codingcat.dev |
| 1 | +# create-svelte |
2 | 2 |
|
3 | | -This is the main site. |
| 3 | +Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte). |
4 | 4 |
|
5 | | -This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). |
| 5 | +## Creating a project |
6 | 6 |
|
7 | | -## Getting Started |
8 | | - |
9 | | -First, run the development server: |
| 7 | +If you're seeing this, you've probably already done this step. Congrats! |
10 | 8 |
|
11 | 9 | ```bash |
12 | | -npm run dev |
13 | | -# or |
14 | | -yarn dev |
| 10 | +# create a new project in the current directory |
| 11 | +npm create svelte@latest |
| 12 | + |
| 13 | +# create a new project in my-app |
| 14 | +npm create svelte@latest my-app |
15 | 15 | ``` |
16 | 16 |
|
17 | | -Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. |
| 17 | +## Developing |
18 | 18 |
|
19 | | -You can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file. |
| 19 | +Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server: |
20 | 20 |
|
21 | | -## Learn More |
| 21 | +```bash |
| 22 | +npm run dev |
22 | 23 |
|
23 | | -To learn more about Next.js, take a look at the following resources: |
| 24 | +# or start the server and open the app in a new browser tab |
| 25 | +npm run dev -- --open |
| 26 | +``` |
24 | 27 |
|
25 | | -- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. |
26 | | -- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. |
| 28 | +## Building |
27 | 29 |
|
28 | | -You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! |
| 30 | +To create a production version of your app: |
29 | 31 |
|
30 | | -## Deploy on Vercel |
| 32 | +```bash |
| 33 | +npm run build |
| 34 | +``` |
31 | 35 |
|
32 | | -The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/import?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. |
| 36 | +You can preview the production build with `npm run preview`. |
33 | 37 |
|
34 | | -Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. |
| 38 | +> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment. |
0 commit comments