A fast, modern, and fully responsive personal website built using Astro and TailwindCSS on the frontend, and powered by a headless WordPress backend via GraphQL API.
- ⚡️ Built with Astro for optimal performance and modern development.
- 🎨 Styled with TailwindCSS.
- ✍️ Dynamic content powered by WordPress (headless).
- 🔌 Fetches data using GraphQL.
- 🧩 Modular and maintainable structure.
- 📱 Fully responsive design.
- Frontend: Astro, TailwindCSS
- Backend: WordPress (headless)
- Data Layer: GraphQL API (via WPGraphQL plugin)
- Deployment: Github Actions
git clone https://github.com/bpato/bpato.com.git
cd bpato.comnpm installCreate a .env file in the root directory with the following:
# Website domain to generate robots.txt and sitemaps
DOMAIN=https://maindomain.com
WP_DOMAIN=https://yourwordpressdomain.com/
# Optional
WP_API_CUSTOM=graphqlEnsure WPGraphQL plugin is active in your WordPress install.
npm run devOpen http://localhost:4321 to see the site in action.
This project uses GraphQL to fetch dynamic content such as:
- Posts
- Pages
You can explore and test queries using the built-in WPGraphQL GraphiQL IDE at:
https://yourwordpressdomain.com/graphql
This project is licensed under the MIT License.
