chore: reorganize project into monorepo

This commit is contained in:
2026-03-28 10:40:22 +08:00
parent 60367a5f51
commit 1455d93246
201 changed files with 30081 additions and 93 deletions

View File

@@ -1,43 +1,35 @@
# Astro Starter Kit: Minimal
# termi-blog
```sh
npm create astro@latest -- --template minimal
```
Monorepo for the Termi blog system.
> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
## 🚀 Project Structure
Inside of your Astro project, you'll see the following folders and files:
## Structure
```text
/
├── public/
├── src/
│ └── pages/
│ └── index.astro
└── package.json
.
├─ frontend/ # Astro blog frontend
├─ backend/ # Loco.rs backend and admin
├─ .codex/ # Codex workspace config
└─ .vscode/ # Editor workspace config
```
Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
## Run
There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
### Frontend
Any static assets, like images, can be placed in the `public/` directory.
```powershell
cd frontend
npm install
npm run dev
```
## 🧞 Commands
### Backend
All commands are run from the root of the project, from a terminal:
```powershell
cd backend
$env:DATABASE_URL="postgres://postgres:postgres%402025%21@10.0.0.2:5432/termi-api_development"
cargo loco start 2>&1
```
| Command | Action |
| :------------------------ | :----------------------------------------------- |
| `npm install` | Installs dependencies |
| `npm run dev` | Starts local dev server at `localhost:4321` |
| `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` |
| `npm run astro -- --help` | Get help using the Astro CLI |
## Repo Name
## 👀 Want to learn more?
Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
Recommended repository name: `termi-blog`