https://github.com/toquery/static-frontend-container-backend
https://github.com/toquery/static-frontend-container-backend
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/toquery/static-frontend-container-backend
- Owner: ToQuery
- Created: 2025-12-15T09:28:33.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-12-15T09:28:47.000Z (6 months ago)
- Last Synced: 2025-12-18T08:49:00.491Z (6 months ago)
- Language: TypeScript
- Size: 12.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Static Frontend + Container Backend
[](https://deploy.workers.cloudflare.com/?url=https://github.com/mikenomitch/static-frontend-container-backend)
This is a [Container](https://developers.cloudflare.com/containers/) starter template to
demonstrate deploying a static frontend with a load-balanced and stateless containerized backend.
Outside of this repo, you can start a new project with this template using [C3](https://developers.cloudflare.com/pages/get-started/c3/) (the `create-cloudflare` CLI):
```bash
npm create cloudflare@latest -- --template=mikenomitch/static-frontend-container-backend
```
## Getting Started
First, run:
```bash
npm install
# or
yarn install
# or
pnpm install
# or
bun install
```
Then run the development server (using the package manager of your choice):
```bash
npm run dev
```
Open [http://localhost:8787](http://localhost:8787) with your browser to see the result.
You can start editing your Worker by modifying `src/index.ts`, you can start
editing your Container backend by editing the content of `container_src`,
and you can start editing assets in `/dist`.
You can also use one of the [many frontend frameworks](/workers/framework-guides/web-apps/)
that work on Cloudflare.
## Deploying To Production
| Command | Action |
| :--------------- | :------------------------------------ |
| `npm run deploy` | Deploy your application to Cloudflare |
## Learn More
To learn more about Containers, take a look at the following resources:
- [Container Documentation](https://developers.cloudflare.com/containers/) - learn about Containers
- [Beta Information](https://developers.cloudflare.com/beta-info/) - learn about the Containers Beta
- [Container Class](https://github.com/cloudflare/containers) - learn about the Container helper class
Your feedback and contributions are welcome!