Prerequisites
Before you begin, ensure you have the following installed:Node.js
Version 20.x or higher
npm/yarn/pnpm
Package manager of your choice
Angular CLI
Version 20.3.4 or higher
This project uses Angular CLI version 20.3.4. You can install it globally with
npm install -g @angular/[email protected]Installation
Install Dependencies
Install the required dependencies using your preferred package manager:This will install all dependencies including:
- Angular 20.3.0
- Tailwind CSS 4.1.14
- Express 5.1.0
- RxJS 7.8.0
- And other required packages
Development Commands
Here are the essential commands you’ll use during development:Start Development Server
Run the local development server with hot reload:ng serve and starts the application at http://localhost:4200/.
Build for Production
Create an optimized production build:dist/ directory. The production build is optimized for performance and speed.
Watch Mode
Build the project in development mode with file watching:ng build --watch --configuration development and automatically rebuilds when files change.
Run Tests
Execute unit tests with Karma:Tailwind CSS Development
Watch and compile Tailwind CSS during development:Server-Side Rendering
Run the SSR server after building:Project Structure
After installation, you’ll find the following structure:Configuration Files
Angular Configuration
The project is configured inangular.json with:
- Source root:
src/ - Prefix:
app - SSR enabled: Server-side rendering with Express
- Output mode: Server mode for SSR support
Tailwind Configuration
Tailwind CSS v4 is configured with:- Dark mode: Class-based (
darkMode: "class") - Custom colors: Primary blue (
#1173d4), custom background colors - Font family: Inter for display text
- Content paths:
./src/**/*.{html,ts}
Next Steps
Component Architecture
Learn about the standalone component structure
Tailwind Setup
Understand the Tailwind CSS v4 configuration
Development
Best practices for developing features
Deployment
Deploy the portfolio with SSR support
Troubleshooting
Port Already in Use
If port 4200 is already in use, you can specify a different port:Build Errors
If you encounter build errors, try:- Delete
node_modulesand reinstall dependencies - Clear Angular cache:
ng cache clean - Ensure you’re using Node.js version 20.x or higher
Tailwind Styles Not Loading
If Tailwind styles aren’t applied, make sure:- The Tailwind watch command is running:
npm run tailwind:watch - The
styles.cssfile imports Tailwind directives - Your components are within the content paths defined in
tailwind.config.js
For more detailed troubleshooting, check the Angular CLI documentation or the Tailwind CSS documentation.