innoTUgrid / frontend

1 stars 0 forks source link

InnoTUGrid frontend

Welcome to the Angular Frontend for Data Visualization of Microgrids! This project is set up using the Angular CLI and allows you to create interactive data visualizations for microgrids. Follow the instructions below to get started with development.

Bildschirmfoto vom 2024-02-06 11-09-30

Prerequisites

Before you begin, ensure you have the following prerequisites installed on your system:

Getting Started

  1. Clone this repository to your local machine:

    git clone https://github.com/innoTUgrid/frontend.git
  2. Navigate to the project directory:

    cd frontend
  3. Install project dependencies:

    npm install

Development Server

To start the development server run:

npm run start

It will automatically reload the application when you make changes to the source code. The application will be available at http://localhost:4200/.

Building for Production

When you're ready to build your application for production, you can use the following command:

npm run build

This will generate optimized production-ready files in the dist/ directory.

Building for Production with Docker

To build the application for production using Docker, you can use the following command:

docker build -t innotugrid-frontend .

This will create a Docker image with the name innotugrid-frontend. You can then run the image using the following command:

docker run -p 8080:80 -e API_URL=http://localhost:3000 innotugrid-frontend

This will start a container with the application running on port 8080. The API_URL environment variable is used to specify the URL of the backend API.

Project Structure

The project structure follows Angular CLI conventions. Key directories and files include:

Further Help

This project leverages the following libraries for data visualization and UI components:

Also refer to the Angular documentation.

Happy coding! 🚀