Quickstart Guide
Get started with SAAC Frontend in just a few minutes. This guide will walk you through creating and running your first application.Prerequisites
Before you begin, ensure you have the following installed:Node.js 18.0.0 or higher is required. We recommend using the latest LTS version for optimal stability and performance.
Quick Setup
Clone the repository
First, clone the SAAC Frontend template to your local machine:Replace
<repository-url> with your actual repository URL.Install dependencies
Install all required packages using your preferred package manager:This will install all dependencies listed in package.json:
- React 19.1.1 and React DOM
- Tailwind CSS 4.1.13 with Vite plugin
- Vite 7.1.2 and all development tools
- TypeScript 5.8.3 and type definitions
- ESLint and related plugins
Start the development server
Launch the Vite development server:The server will start and display output similar to:
Verify Your Setup
To verify everything is working correctly:-
Test Hot Module Replacement: Open
src/App.tsxin your editor and modify the heading text. Save the file and watch the browser update instantly without a full page reload. - Test the Counter: Click the “count is 0” button. The count should increment, demonstrating React state management is working.
- Check the Console: Open your browser’s developer console (F12). You should see no errors.
The development server includes Hot Module Replacement (HMR), which means your changes appear instantly in the browser without losing application state.
What’s Running?
When you runnpm run dev, several things happen:
- Vite Development Server: Starts on port 5173 (or next available port)
- React Fast Refresh: Powered by SWC for instant component updates
- Tailwind CSS: Compiles utility classes on-demand via the Vite plugin
- TypeScript Checking: Type checks your code in the background
Available Scripts
Your SAAC Frontend template comes with these npm scripts:Development
Production Build
dist/ folder. This command:
- Runs TypeScript compiler (
tsc -b) to check types - Builds optimized bundle with Vite
- Generates minified CSS and JavaScript
Preview Production Build
npm run build.
Linting
Your First Edit
Let’s make a quick change to verify everything works:Next Steps
Now that you have SAAC Frontend running, here’s what to explore next:Project Structure
Understand how the project is organized and where to add your code
Styling with Tailwind
Learn how to use Tailwind CSS v4 utility classes
TypeScript Setup
Explore the TypeScript configuration and type safety features
Building for Production
Learn how to create optimized production builds
Troubleshooting
Port Already in Use
If port 5173 is already in use, Vite will automatically try the next available port. You can also specify a custom port:Dependencies Installation Failed
If you encounter errors duringnpm install:
- Clear npm cache:
npm cache clean --force - Delete
node_modulesandpackage-lock.json - Run
npm installagain
TypeScript Errors in Editor
If your editor shows TypeScript errors:- Ensure TypeScript is installed:
npm install - Restart your editor’s TypeScript server
- Check that your editor is using the workspace TypeScript version
