📘 Technical Documentation: Running the Application

This section provides a detailed guide on how to run the Angular-based frontend application for development and production environments.


🚀 Usage

The application is built with Angular 10 and uses SCSS for styling. Below are the steps to run the application in different environments.


🛠️ Development Mode

To start the application in development mode:

  1. Open your terminal.

  2. Navigate to the project directory.

  3. Run the following command:

    ng serve
    
  4. The development server will start, and the application will be accessible at:

    http://localhost:4200/
    

    Key Features of Development Mode:

    • Automatic reloading on file changes.
    • Debugging tools enabled for easier troubleshooting.

📦 Production Build

For production, the application needs to be optimized and bundled. To build the application for production:

  1. Open your terminal.

  2. Navigate to the project directory.

  3. Run the following command:

    ng build --prod
    
  4. The production build will be generated in the dist/volley-app directory.

    Key Features of Production Build:

    • Optimized and minified code for better performance.
    • Smaller bundle size with Ahead-of-Time (AOT) compilation enabled.
    • Suitable for deployment to production servers.

📋 Commands Summary

Command Description
ng serve Starts the development server with live reload at http://localhost:4200/.
ng build --prod Creates an optimized production build in the dist/volley-app directory.

✨ Additional Notes

  • Ensure that Node.js and Angular CLI are installed before running these commands.
  • For troubleshooting, refer to the Angular CLI documentation or check the terminal logs for errors.

Pro Tip: Use export NODE_OPTIONS=--openssl-legacy-provider before ng serve if you encounter issues with SSL【4:6†source】.


With these steps, you can efficiently run the application in both development and production environments. Happy coding! 😄