A Template for your next Web Project
D
- DaisyUiU
- UnocssA
- AstroJsS
- Svelte
Initalize a DUAS Project with
bun
bun create astro@latest -- --template Keshav-writes-code/DUAS-template#master
- Daisyui (latest)
- Unocss (latest)
- Default Unocss Stuff
- Unocss Icones Preset (with Tabler Icones Set)
- tailwind (latest) (used only to serve DaisyUi Classes)
- Astro (latest)
- Svelte (latest)
- Change the value for
base
key inastro.config.mjs
to basically Define a Sub Path that comes afterhttps://<your_github_username>.github.io/...
for gh pages hosting - example:
astro.config.mjs
import { defineConfig } from "astro/config";
import UnoCSS from "unocss/astro";
import svelte from "@astrojs/svelte";
import tailwind from "@astrojs/tailwind";
export default defineConfig({
integrations: [UnoCSS({
injectReset: true,
}), svelte(), tailwind()],
site: "https://Keshav-writes-code.github.io",
base: "new_project",
});
- Path on GH Pages =
https://keshavWebDev-personal.github.io/new_project
- when you do your First Push of a project created with this template (with the
base
andsite
params set) on Github, it will be automatically deployed to GH Pages with the above mentioned resulting URL
Copy Paste this in your Bash \ Zsh Terminal
For : Linux : Debian / Ubuntu
# Installs Git
sudo apt-get install git &&
# Installs Node
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash &&
nvm install 22 &&
# Installs Bun
curl -fsSL https://bun.sh/install | bash &&
# Initialize a project with template in Current Directory
bun create astro@latest -- --template Keshav-writes-code/DUAS-template#master