[READ-ONLY] Mirror of https://github.com/andrioid/astro-deno-ssr-prerender-bug. Demonstrating a bug in Astro SSR with Deno
2.2 kB
54 lines
1# Astro Starter Kit: Deno
2
3[](https://stackblitz.com/github/withastro/astro/tree/latest/examples/deno)
4[](https://codesandbox.io/s/github/withastro/astro/tree/latest/examples/deno)
5
6```
7npm create astro@latest -- --template deno
8```
9
10> 🧑🚀 **Seasoned astronaut?** Delete this file. Have fun!
11
12
13
14
15## 🚀 Project Structure
16
17Inside of your Astro project, you'll see the following folders and files:
18
19```
20/
21├── public/
22│ └── favicon.svg
23├── src/
24│ ├── components/
25│ │ └── Layout.astro
26│ └── pages/
27│ └── index.astro
28├── package.json
29└── tsconfig.json
30```
31
32Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
33
34There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
35
36Any static assets, like images, can be placed in the `public/` directory.
37
38## 🧞 Commands
39
40All commands are run from the root of the project, from a terminal:
41
42| Command | Action |
43| :--------------------- | :----------------------------------------------- |
44| `npm install` | Installs dependencies |
45| `npm run dev` | Starts local dev server at `localhost:3000` |
46| `npm run build` | Build your production site to `./dist/` |
47| `npm run preview` | Preview your build locally, before deploying |
48| | (preview uses Deno CLI) |
49| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
50| `npm run astro --help` | Get help using the Astro CLI |
51
52## 👀 Want to learn more?
53
54Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).