| 1 | ## Usage |
| 2 | |
| 3 | Those templates dependencies are maintained via [pnpm](https://pnpm.io) via `pnpm up -Lri`. |
| 4 | |
| 5 | This is the reason you see a `pnpm-lock.yaml`. That being said, any package manager will work. This file can be safely be removed once you clone a template. |
| 6 | |
| 7 | ```bash |
| 8 | $ npm install # or pnpm install or yarn install |
| 9 | ``` |
| 10 | |
| 11 | ## Exploring the template |
| 12 | |
| 13 | This template's goal is to showcase the routing features of Solid. |
| 14 | It also showcase how the router and Suspense work together to parallelize data fetching tied to a route via the `.data.ts` pattern. |
| 15 | |
| 16 | You can learn more about it on the [`@solidjs/router` repository](https://github.com/solidjs/solid-router) |
| 17 | |
| 18 | ### Learn more on the [Solid Website](https://solidjs.com) and come chat with us on our [Discord](https://discord.com/invite/solidjs) |
| 19 | |
| 20 | ## Available Scripts |
| 21 | |
| 22 | In the project directory, you can run: |
| 23 | |
| 24 | ### `npm run dev` or `npm start` |
| 25 | |
| 26 | Runs the app in the development mode.<br> |
| 27 | Open [http://localhost:3000](http://localhost:3000) to view it in the browser. |
| 28 | |
| 29 | The page will reload if you make edits.<br> |
| 30 | |
| 31 | ### `npm run build` |
| 32 | |
| 33 | Builds the app for production to the `dist` folder.<br> |
| 34 | It correctly bundles Solid in production mode and optimizes the build for the best performance. |
| 35 | |
| 36 | The build is minified and the filenames include the hashes.<br> |
| 37 | Your app is ready to be deployed! |
| 38 | |
| 39 | ## Deployment |
| 40 | |
| 41 | You can deploy the `dist` folder to any static host provider (netlify, surge, now, etc.) |
| 42 | |
| 43 | ## This project was created with the [Solid CLI](https://github.com/solidjs-community/solid-cli) |