Welcome to my Website!
This is an Astro project for my personal website, which I play to use as a blog. The project is continually in development, as I also take it as an opportunity to learn something new.
This is a fully static website hosted on GitHub pages, using a fully static CMS for content management.
I guess for experienced developers a lot of things in this repo will not make any sense, however, everybody has to start somewhere.
- Frameworks:
- Content Management System: Static CMS
- User authorization: Static CMS GitHub OAuth provider
Deployments are done either on a new commit to the main
branch (production), or on a new pull request for main
branch.
Pull request creates a new build just for that particular pull request, which is used to preview the site. Previews are hosted here.
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 dev-host |
Starts local dev server hosted at a network |
npm run build |
Build production site to ./dist/ |
npm run preview |
Preview the build locally |
npm run preview-host |
Preview the build hosted at a network |
npm run astro ... |
Run CLI commands like astro add , astro preview |
npm run sync |
Runs the astro sync command to generate content collection types |
npm run prettier-check |
Runs the prettier . --check command to check for formatting problems |
npm run prettier-format |
Runs the prettier . --write command to fix formatting problems |
npm run astro --help |
Get help using the Astro CLI |