Home Blog Directory Games Tools About

Quick Setup for Frontend Projects

Frontend Setup Animation

Get your project up and running in minutes. Pick your stack, grab the template, and start coding.

Table of Contents

Why Use Boilerplates?

Starting from scratch can be a lot of click‑click‑click. Boilerplates let you:

Essential Tooling

Below are the most common tools, with their command‑line starter commands.

Starter Templates

All the templates below include ESLint + Prettier, a simple README, and a demo component.

  1. React with Vite: github.com/sohamsh/react-vite-starter
  2. Vue 3 + Vite: github.com/sohamsh/vue-vite-starter
  3. SvelteKit starter: github.com/sohamsh/sveltekit-starter
  4. Next.js boilerplate: github.com/sohamsh/nextjs-boilerplate
  5. Parcel simple web page: github.com/sohamsh/parcel-simple
  6. Vanilla JS + Parcel: github.com/sohamsh/vanilla-parcel
  7. React + TypeScript + Vite: github.com/sohamsh/react-ts-vite

Step‑by‑Step Instructions

We'll walk through creating a React + Vite project, then show how to add a simple component.

# 1️⃣ Create the project
npm create vite@latest my-app -- --template react

# 2️⃣ Enter the directory
cd my-app

# 3️⃣ Install dependencies
npm install

# 4️⃣ Run the dev server
npm run dev

Once the dev server is running, open http://localhost:5173 and you should see the default “Vite + React” page.

Adding a new component

/src/components/HelloWorld.jsx

import React from 'react';

export default function HelloWorld() {
  return <h2>Hello, Gen World!</h2>;
}

And import it in App.jsx:

import HelloWorld from './components/HelloWorld';

export default function App() {
  return (
    <div>
      <HelloWorld />
    </div>
  );
}

Optional Extras

frontend react vite starter tutorial