https://github.com/cm-iv/astro-site
My Astro based website
https://github.com/cm-iv/astro-site
Last synced: 3 months ago
JSON representation
My Astro based website
- Host: GitHub
- URL: https://github.com/cm-iv/astro-site
- Owner: CM-IV
- License: gpl-3.0
- Created: 2024-03-27T13:16:49.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-06-12T02:06:00.000Z (about 1 year ago)
- Last Synced: 2025-01-22T00:15:46.591Z (5 months ago)
- Language: Astro
- Size: 533 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Oceanus Digital Consulting
## Built with [Astro](https://astro.build/)
## 🚀 Project Structure
Here's a rough outline of the directory structure.
```
/
├── public/
│ └── favicon.ico
├── src/
│ ├── components/
│ │ └── Layout.astro
| ├── css/
| | └── styles.css
| ├── layouts/
| | ├── blogPost.astro
| | └── mainLayout.astro
│ └── pages/
│ └── index.astro
└── package.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 or layouts.
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 |
| :----------------- | :------------------------------------------- |
| `pnpm install` | Installs dependencies |
| `pnpm run dev` | Starts local dev server at `localhost:3000` |
| `pnpm run build` | Build your production site to `./dist/` |
| `pnpm run preview` | Preview your build locally, before deploying |