Skip to main content

Getting Started

Prerequisites

  • Node.js 20.x or 22.x
  • npm 11.x
  • Git

Installation

1. Clone the Repository

git clone <repository-url>
cd aquagen_web_appp

2. Install Dependencies

npm install

3. Configure Environment

Create .env file in the root:

# Azure AD Configuration
REACT_APP_AZURE_CLIENT_ID=your-client-id
REACT_APP_AZURE_TENANT_ID=your-tenant-id
REACT_APP_AZURE_REDIRECT_URI=http://localhost:4200

# API Configuration
REACT_APP_API_URL=http://localhost:5001

4. Start Development Server

npm start

The application will open at http://localhost:4200

Development

Run Specific App

npx nx serve production  # Production app
npx nx serve demo # Demo app

Build

npm run build           # Build production app
npx nx build demo # Build demo app

Testing

npx nx test            # Run tests
npx nx lint # Run linter

Project Commands

npm run create:app      # Create new app
npm run create:lib # Create new library
npm run integrate:lib # Integrate library

Next Steps