Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions site/.prettierrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"plugins": [
"prettier-plugin-astro"
],
"semi": true,
"singleQuote": false,
"trailingComma": "all",
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"plugins": ["prettier-plugin-astro", "prettier-plugin-tailwindcss"],
"overrides": [
{
"files": "*.astro",
Expand All @@ -10,4 +14,4 @@
}
}
]
}
}
86 changes: 50 additions & 36 deletions site/README.md
Original file line number Diff line number Diff line change
@@ -1,46 +1,60 @@
# Astro Starter Kit: Basics
# EndPoint Website

```sh
pnpm create astro@latest -- --template basics
```
The official marketing and download site for [EndPoint](https://github.com/Not-Sahil-Raja/EndPoint) — a lightweight desktop app for monitoring server health in real time.

Built with [Astro](https://astro.build), [Tailwind CSS v4](https://tailwindcss.com), and [astro-icon](https://github.com/natemoo-re/astro-icon).

## Features

- **Dynamic download links** — fetches the latest release from the GitHub API at build time, so the site always points to the newest version
- **OS-aware hero button** — detects the visitor's platform and offers the correct installer
- **Linux install guide** — step-by-step instructions for AppImage, .deb, and .rpm packages
- **Graceful fallback** — if the GitHub API is unavailable, the site falls back to a known-good version instead of breaking

## Project Structure

> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!

## 🚀 Project Structure

Inside of your Astro project, you'll see the following folders and files:

```text
/
├── public/
│ └── favicon.svg
├── src
│   ├── assets
│   │   └── astro.svg
│   ├── components
│   │   └── Welcome.astro
│   ├── layouts
│   │   └── Layout.astro
│   └── pages
│   └── index.astro
```
site/
├── src/
│ ├── components/ # Astro components
│ │ ├── Download.astro # Platform download cards
│ │ ├── Hero.astro # Hero section with OS-aware download button
│ │ ├── LinuxInstall.astro # Linux installation guide
│ │ └── ...
│ ├── lib/
│ │ └── github.ts # GitHub release fetcher utility
│ ├── icons/ # Local SVG icons
│ ├── layouts/ # Page layouts
│ ├── pages/ # Route definitions
│ └── styles/ # Global CSS
├── public/ # Static assets
├── astro.config.mjs
└── package.json
```

To learn more about the folder structure of an Astro project, refer to [our guide on project structure](https://docs.astro.build/en/basics/project-structure/).
## Commands

All commands run from the `site/` directory:

| Command | Action |
| :----------------- | :-------------------------------------------- |
| `pnpm install` | Install dependencies |
| `pnpm dev` | Start dev server at `localhost:4321` |
| `pnpm build` | Build for production to `./dist/` |
| `pnpm preview` | Preview the production build locally |

## 🧞 Commands
## How It Works

All commands are run from the root of the project, from a terminal:
The site fetches the latest GitHub release at build time via `src/lib/github.ts`:

```ts
const release = await getLatestRelease();
// → { version, baseUrl, htmlUrl, assets }
```

| Command | Action |
| :------------------------ | :----------------------------------------------- |
| `pnpm install` | Installs dependencies |
| `pnpm dev` | Starts local dev server at `localhost:4321` |
| `pnpm build` | Build your production site to `./dist/` |
| `pnpm preview` | Preview your build locally, before deploying |
| `pnpm astro ...` | Run CLI commands like `astro add`, `astro check` |
| `pnpm astro -- --help` | Get help using the Astro CLI |
Each component uses this data to construct download URLs. If the API call fails (rate limit, network error), a fallback version is used so the build never breaks.

## 👀 Want to learn more?
## Requirements

Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
- **Node.js** ≥ 22.12.0
- **pnpm** ≥ 11.0.9
3 changes: 2 additions & 1 deletion site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@
"@iconify-json/solar": "^1.2.5",
"@tailwindcss/vite": "^4.3.0",
"astro-icon": "^1.1.5",
"prettier-plugin-tailwindcss": "^0.8.0",
"sharp": "^0.34.5",
"tailwindcss": "^4.3.0"
},
"packageManager": "pnpm@11.0.9+sha512.34ce82e6780233cf9cad8685029a8f81d2e06196c5a9bad98879f7424940c6817c4e4524fb7d38b8553ceed48b9758b8ebaf1abd3600c232c4c8cf7366086f38"
}
}
Loading