Overview
This guide provides comprehensive installation instructions for ScreenPulse, including system requirements, step-by-step setup, and solutions to common issues.System Requirements
Required Software
ScreenPulse requires the following software to be installed on your system:Node.js
npm
Version: v8.0.0 or higherIncluded with Node.js installationVerify installation:
Angular CLI
Version: v16.2.16Install globally:Verify installation:
Git
Recommended Software
For an optimal development experience, we recommend:- Visual Studio Code - Lightweight code editor with excellent Angular support
- Chrome or Firefox - Modern browsers with DevTools
- Angular DevTools - Browser extension for debugging Angular applications
Installation Steps
Verify Prerequisites
Before installing ScreenPulse, verify all prerequisites are met:
If any of these commands fail, install the missing software before continuing.
Clone the Repository
Clone the ScreenPulse frontend application from GitHub:Navigate to the project directory:
Install Dependencies
Install all required npm packages:This installs:Core Dependencies:
@angular/[email protected]- Angular framework@angular/[email protected]- Material Design components@ng-bootstrap/[email protected]- Bootstrap 5 components[email protected]- Reactive Extensions for JavaScript[email protected]- Toast notifications[email protected]- Bootstrap CSS framework
@angular/[email protected]- Angular command-line interface@storybook/[email protected]- Component documentation[email protected]- TypeScript compiler[email protected]&[email protected]- Testing framework[email protected]- Code linting
Verify Installation
Verify the installation was successful by checking the project structure:You should see Angular CLI v16.2.16 and the project packages listed.
Start Development Server
Test that everything is working by starting the development server:Wait for the compilation to complete. You should see:
Environment Configuration
After installation, ScreenPulse uses environment files for API configuration:By default, ScreenPulse connects to the production backend API at
screenpulse-api.onrender.com. To use a local backend, see the Configuration Guide.Verify Installation
Run these commands to ensure everything is set up correctly:Troubleshooting Common Issues
Node.js version mismatch
Node.js version mismatch
Problem: Angular requires a specific Node.js version range.Solution:
- Check your Node.js version:
- If you have the wrong version, install Node.js v18.19.1 LTS:
- Download from nodejs.org
- Or use a version manager like
nvm:
- Verify the correct version is active:
- Reinstall dependencies:
npm install fails with permission errors
npm install fails with permission errors
Problem: Permission denied errors during On Windows:
Run your terminal as Administrator, or:Avoid using
npm install.Solution:On Linux/Mac:sudo npm install as it can cause permission issues later.Port 4200 already in use
Port 4200 already in use
Problem: Option 2: Kill the process using port 4200On Linux/Mac:On Windows:
ng serve fails because port 4200 is already in use.Solution:Option 1: Use a different portModule not found errors
Module not found errors
Problem: Import errors like
Cannot find module '@angular/core'.Solution:- Delete
node_modulesandpackage-lock.json:
- Clear npm cache:
- Reinstall dependencies:
- If the issue persists, check your Node.js version:
Angular CLI not found
Angular CLI not found
Problem: Command Verify installation:If still not working, check your PATH:Ensure npm’s global bin directory is in your PATH.
ng not recognized.Solution:Install Angular CLI globally:Compilation errors on first run
Compilation errors on first run
Problem: TypeScript compilation errors when running
ng serve.Solution:- Ensure you’re using TypeScript 5.1.x:
- If wrong version, reinstall:
- Clear Angular cache:
- Restart the dev server:
Build fails with memory errors
Build fails with memory errors
Problem: Build process fails with JavaScript heap out of memory.Solution:Increase Node.js memory limit:Or add to package.json scripts:
Next Steps
Environment Setup
Configure Node.js, Angular CLI, and recommended tools
Configuration
Set up API endpoints and environment variables
Development Workflow
Learn the development process and available tools
Architecture
Understand the ScreenPulse application structure
Additional Resources
- Official Documentation: angular.io/docs
- ScreenPulse Backend: GitHub Repository
- Component Library: Storybook Documentation
- Angular CLI Reference: angular.io/cli