Skip to content

foxxyz/front-end-starter

Repository files navigation

Front-End Starter 🏃

Boilerplate code to quickly start a front-end web project using Vite & Vue 3.

Features

  • Includes Vue Router for multiple pages and URL routing
  • Includes ESLint linting configuration for code consistency
  • Includes SASS as CSS pre-processor

Requirements

  • Node 18+

Installation

No installation steps, quick configuration route using generate-front-end:

npx generate-front-end

Or run the steps manually:

  1. Clone: git clone https://github.com/foxxyz/front-end-starter.git
  2. Install dependencies: npm install
  3. Test it works: npm run dev

Usage

Once you're up and running, make sure to update the following items:

Note: below steps performed automatically if installed using generate-front-end

Customize

  1. Update package name and description in package.json
  2. Update author and repository info in package.json
  3. Update project title in index.html
  4. Change favicons (public/favicon.ico, public/favicon-32x32.png and public/favicon-16x16.png)
  5. Update git remote using git remote set-url origin <git-repo-url>
  6. Remove ci directory rm -rf .github
  7. Run npm install again to update package-lock.json
  8. Update or remove LICENSE file
  9. Start building your main page in src/pages/home.vue

Suggested Project Structure

  • src/components: Sub-page and smaller level components
  • src/fonts: Font assets
  • src/images: Image assets
  • src/pages: Components for each main page
  • src/services: Reusable services, such as API or data management modules

Helpers

  • Lint your project: npm run lint

Deployment

  1. Compile: npm run build
  2. Upload contents of dist to a directory accessible by your web server.

License

MIT

About

Front-End Starter Boilerplate using Vite & Vue

Resources

License

Stars

Watchers

Forks

Packages

No packages published