Prerequisites
Before you begin, ensure you have the following installed:Node.js
Version 20.x or higher
npm
Version 10.x or higher (comes with Node.js)
Git
For version control
VS Code
Recommended IDE (optional)
Installation
Install dependencies
Install all required packages using npm:This will install all dependencies listed in
package.json, including:- Next.js 14.2.14
- React 18
- TypeScript 5
- Tailwind CSS 3.4.1
- And many more…
Configure environment variables
Create a
.env.local file in the root directory:The API base URL should point to your backend Laravel API endpoint.
Available Scripts
SIGEAC includes the following npm scripts:TypeScript Configuration
SIGEAC uses TypeScript with the following configuration (tsconfig.json):
The
@/* path alias allows you to import modules from the root directory:IDE Setup
VS Code Extensions
Recommended extensions for optimal development experience:- ES7+ React/Redux/React-Native snippets - Code snippets
- Tailwind CSS IntelliSense - Autocomplete for Tailwind classes
- ESLint - Code linting
- Prettier - Code formatting
- TypeScript and JavaScript Language Features - Built-in
VS Code Settings
Add to your.vscode/settings.json:
Next.js Configuration
The Next.js configuration (next.config.mjs) includes:
Troubleshooting
Port Already in Use
If port 3000 is already in use:Module Not Found
If you encounter module not found errors:Type Errors
If TypeScript shows errors:Verify Installation
After setup, verify everything is working:Next Steps
Project Structure
Learn about the codebase organization
Tech Stack
Explore the technologies used
