Frontend Tutorial - bounswe/bounswe2025group9 GitHub Wiki
🌐 What is a Frontend?
In modern web applications, the frontend is the part of the application that users directly interact with — the visual interface, buttons, layouts, and everything you see on a website or web app. It communicates with the backend, which handles data processing, storage, and business logic.
🕰️ Evolution of Frontend Development
HTML (HyperText Markup Language)
HTML is the skeleton of web pages. It defines the structure and content — headers, paragraphs, links, images, etc.
CSS (Cascading Style Sheets)
CSS adds style to HTML — layout, colors, fonts, responsiveness, animations, and more.
JavaScript
JavaScript brings interactivity to the web. It's used to handle logic like form validation, dynamic content updates, animations, API requests, and more.
🧰 Our Frontend Stack
We're building our frontend with:
- React – UI framework
- TypeScript (TSX) – JavaScript + type safety
- Vite – Build tool for fast development
- Tailwind CSS – Utility-first CSS framework
Let's break these down:
Tool | Description |
---|---|
React | Component-based UI library |
TypeScript (TSX) | Superset of JS with types, safer coding |
Vite | Fast dev server + bundler |
Tailwind CSS | Utility-based styling with minimal custom CSS |
React
React is a popular JavaScript library for building fast and interactive user interfaces using a component-based approach. Developed by Meta, it allows developers to build reusable UI components and manage state effectively.
TypeScript (TSX)
TypeScript is a superset of JavaScript that adds static typing. It helps catch errors during development and makes code more maintainable. TSX is TypeScript's version of JSX, allowing type-safe React components.
Vite
Vite is a modern build tool that provides a faster and leaner development experience. It uses native ES modules and offers features like instant server start, lightning-fast HMR (Hot Module Replacement), and optimized builds.
Tailwind CSS
Tailwind CSS is a utility-first CSS framework that lets you build custom designs without leaving your HTML. It provides low-level utility classes that let you build completely custom designs without ever leaving your HTML.
⚙️ How to Create a React + TS + Vite + Tailwind Project
-
Install Node.js Install from nodejs.org. This gives you both
node
andnpm
. -
Create a Vite Project
npm create vite@latest
Choose:
- Framework: React
- Variant: TypeScript
-
Install Tailwind CSS Follow the official Tailwind + Vite Installation Guide
💡 Example Project
I created a simple frontend application with a few UI elements. You can:
-
💻 View the code: GitHub Repo
-
🔗 See it live: Live App on Vercel
Feel free to clone the repo, explore the code, and check out the comments for more insight into how things are built.