Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bogdaaamn/astro-in-space
Astro SSR site in Space
https://github.com/bogdaaamn/astro-in-space
astro deta space ssr
Last synced: 2 months ago
JSON representation
Astro SSR site in Space
- Host: GitHub
- URL: https://github.com/bogdaaamn/astro-in-space
- Owner: bogdaaamn
- Created: 2023-03-10T14:03:37.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-10T14:19:07.000Z (almost 2 years ago)
- Last Synced: 2024-04-13T22:52:59.014Z (9 months ago)
- Topics: astro, deta, space, ssr
- Language: Astro
- Homepage: https://astroinspace-1-h3309164.deta.app/
- Size: 109 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Astro in Space (SSR)
This is an Astro blog generated from the [**official Blog theme**](https://astro.build/themes/details/blog/) that can be pushed in [**Space**](https://deta.space/developers). It is configured with the [`@astrojs/node`](https://docs.astro.build/en/guides/integrations-guide/node/) adapter for SSR. The `Spacefile` is configured to be deployed on [**Space**](https://deta.space/developers).
![blog](https://user-images.githubusercontent.com/22895284/224337874-1520e7d4-2666-4574-8d78-858e24f5e5fe.png)
## 🚀 Project Structure
Inside of your Astro project, you'll see the following folders and files:
```
├── public/
├── src/
│  ├── components/
│  ├── content/
│  ├── layouts/
│  └── pages/
├── astro.config.mjs
├── README.md
├── Spacefile
├── package.json
└── tsconfig.json
```Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
The `src/content/` directory contains "collections" of related Markdown and MDX documents. Use `getCollection()` to retrieve posts from `src/content/blog/`, and type-check your frontmatter using an optional schema. See [Astro's Content Collections docs](https://docs.astro.build/en/guides/content-collections/) to learn more.
Any static assets, like images, can be placed in the `public/` directory.
## 🧞 Commands
All commands are run from the root of the project, from a terminal:
| Command | Action |
| :--------------------- | :----------------------------------------------- |
| `npm run dev` | Starts local dev server at `localhost:3000` |
| `npm run build` | Build your production site to `./dist/` |
| `npm run preview` | Preview your build locally, before deploying |
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
| `space push` | Push Astro to Space |
| `space release` | Release Astro into Space |## 👀 Want to learn more?
- Read the **[Astro docs](https://docs.astro.build/)**
- Read the **[Space docs](https://deta.space/docs/en/introduction/start)**
- Join the **[Astro Discord](https://astro.build/chat)**
- Join the **[Deta Discord](https://go.deta.dev/discord)**## Credit
This theme is based off of the lovely [Bear Blog](https://github.com/HermanMartinus/bearblog/).