The CSAT Hangar Maintenance Planner is a web application developed as part of a collaborative effort between CTU and CSAT. The aim of this project is to enhance aircraft maintenance planning within hangars by providing a platform for creating, managing, and validating maintenance plans. This project is frontend application that works over REST API provided by CSAT Hangar Maintenance Planning System.
- Node.js v.16 or newer
-
Navigate to the project directory
-
Type the following command
$ npm install
- Export environment variable
$ export REACT_APP_STAGE=prod #Backend system is running
$ export REACT_APP_STAGE=dev #Backend system is not running
- Start the application
$ npm start
- Navigate to the project deploy directory
$ cd project-directory/deploy
- Make the dockerization script executable:
$ chmod +x dockerize-app.bash
- Run the script
$ ./dockerize-app.bash
- If the required values ($HANGAR_PLANNER_EXPOSE_PORT, $HANGAR_SERVER_URL) are not provided as environment variables, the script will prompt to enter them.
- After everything is set up, script starts the Docker container with the correct environment settings.