The AstroNode Blog
is a project to build a custom blog UI using Headless Hashnode and Astro web framework.
You can see the demo of the working app from here:
You can fork the repository and run the application locally using the following steps:
- Install dependencies using
npm install
/pnpm install
/yarn
command. - Start the development server with
npm run dev
/pnpm dev
/yarn dev
. - By default, the app will run on the http://localhost:4321/.
- Astro as a front-end web framework.
- Tailwind CSS for styling.
- Headless Hashnode as the CMS for Blogging.
- GraphQL client.
- Netlify for hosting (with automatic build & deployment).
Liked it? You can show your support with a STAR(โญ).
I am an independent educator who creates meaningful projects to teach programming. You can support me further by sponsoring me on GitHub.
Inside of your Astro project, you'll see the following folders and files:
/
โโโ public/
โโโ src/
โ โโโ 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.
Any static assets, like images, can be placed in the public/
directory.
All commands are run from the root of the project, from a terminal:
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 |
The app is deployed on Netlify.