Fast Webapp Template
Find a file
2025-08-26 18:01:16 +08:00
.vscode Initial commit from Astro 2025-06-03 12:03:51 +08:00
nginx Added nginx for docker 2025-08-01 14:19:39 +08:00
public Updated logo 2025-08-26 11:53:29 +08:00
src Moved files 2025-08-26 18:01:16 +08:00
tests/pages Moved files 2025-08-26 18:01:16 +08:00
.editorconfig added configs 2025-06-03 12:20:02 +08:00
.gitignore Added playwright 2025-08-26 11:52:39 +08:00
.prettierrc.yml added configs 2025-06-03 12:20:02 +08:00
astro.config.mjs added lightningcss 2025-06-03 15:51:42 +08:00
docker-compose.yml Fixed docker 2025-06-04 17:20:51 +08:00
Dockerfile added docker 2025-06-03 12:19:27 +08:00
package.json Edited test 2025-08-26 17:58:50 +08:00
playwright.config.ts Reinstall playwright 2025-08-26 15:11:42 +08:00
pnpm-lock.yaml Updated 2025-08-26 15:11:50 +08:00
quadlet.container Moved file 2025-08-26 11:52:27 +08:00
README.md Modified README 2025-08-05 10:46:50 +08:00
tsconfig.json added required plugins 2025-06-03 12:21:13 +08:00

FWT Logo

Fast WebApp Template

How to Use

Clone the Repo

git clone --depth 1 https://git.patalcala.com/patalcala9/fwt.git <project-name>

Navigate to the project

cd <project-name>

Refresh GIT

sudo rm -rf .git
git init

Install Depedencies

pnpm install

Make sure to update the dependencies first

pnpm update

To Use Background

Place your background image in assets/images/background.avif or assets/images/background.webp.

Then, enable by adding <Background image /> or <Background color="#123456">

How to Run

pnpm dev

How to Deploy

Standard

pnpm build

Docker

Edit name and port on docker-compose.yml

sudo vim docker-compose.yml

Run Docker Compose

docker compose up -d

Remove the dangling image created

An node image was created as a requirement for the build process, to ensure dependencies are installed. This image is temporary and should be remove afer the built project is moved to nginx runtime image.

docker rmi $(docker images -f "dangling=true" -q)

Podman

Run Podman Compose

podman-compose up -d

Remove the dangling image created

podman rmi $(docker images -f "dangling=true" -q)

Podman Quadlet

Edit Quadlet Container

sudo vim quadlet/quadlet.container

Copy and Rename the Quadlet to proper directory

mkdir -p ~/.config/containers/systemd/
sudo cp quadlet/quadlet.container ~/.config/containers/systemd/<name>.container

Start at Systemd

systemctl --user daemon-reload
systemctl --user start <name>