/fwdp-starter-vite

⚡ Vite Public Template

Primary LanguageJavaScriptApache License 2.0Apache-2.0

VanillaJS + Vite(est)

image

A template for the late night sessions with the people from FWDP

How to use

Clone the repository

git clone (https://github.com/FWDP/fwdp-starter-vite.git

Install Dependencies

# 1. Go inside the Directory
cd fwdp-starter-vite

# 2. Reinitialize git repository

# 2.a Remove it using git bash
rm -rf .git && git init

# 2.b Remove using powershell
Remove-Item --path .git -Recurse -Force && git init

# Install dependencies
npm install

Running Dev Server

npm run dev

Running Tests

npm run test

Testing for production

npm run build
npm run preview

This has a workflow included to deploy to github pages

First we need to go to the settings of your reposity and Pages Enable it using GitHub Actions

image

By default this will be hosted as yourusername.github.io/fwdp-starter-vite but you can change it to yourusername.github.io by changing the BASE property in vite.config.js to / if you are hosting it with username.github.io for sideprojects you can use username.github.io/projectname and change the BASE property in vite.config.js to /projectname/ projectname is the name of your repository