This repository provides a lightweight full-stack starter template using Alpine.js, Tailwind CSS, and Hono with GraphQL Yoga, all deployed on Cloudflare Workers. This stack ensures lightning-fast, globally distributed responses.
- Frontend: Alpine.js for reactivity and Tailwind CSS for styling.
- Backend: Hono framework with GraphQL Yoga.
- Cloudflare Workers: Serverless, fast, and globally distributed.
- npm or yarn
- Cloudflare account
-
Clone the repository:
git clone https://github.com/geoffsee/fullstack-starter-template.git cd fullstack-starter-template
-
Install dependencies:
npm install
or
yarn install
-
Configure Cloudflare Workers:
- Ensure you have
wrangler
installed and configured. Follow the Cloudflare Workers documentation: Cloudflare Workers Documentation
- Ensure you have
- Run the Development Server:
or
npm run dev
Access the app atyarn dev
http://localhost:8787
.
.
├── public
│ ├── favicon.ico
│ └── index.html
├── src
│ ├── graphql.ts
│ └── index.ts
├── package.json
├── tsconfig.json
├── wrangler.toml
└── README.md
-
Build the Project:
npm run build
or
yarn build
-
Deploy to Cloudflare Workers:
wrangler publish
This project is licensed under the MIT License. See the LICENSE file for details.