A full-stack web application for monitoring and controlling flight instruments in real-time.
This project consists of two main parts:
React-based frontend application providing visual interfaces for:
- Altimeter (0-3000 ft)
- Heading/HIS Compass (0-360°)
- Attitude Direction Indicator (-100 to +100)
Express.js backend providing REST API endpoints for:
- Creating and managing flight data
- Real-time instrument state updates
- Database with MongoDB
- Frontend: React, TypeScript, Vite
- Backend: Node.js, Express, TypeScript
- Database: MongoDB
- State Management: React Context + Reducer
To deploy the application:
- Build the client:
cd client
npm run build- Move built files to server:
mkdir -p ../server/public
cp -r dist/* ../server/public/- Start the server:
cd ../server
npm startThe application will be available at:
- Web Interface:
http://localhost:5000 - API Endpoints:
http://localhost:5000/api/*
This deployment method serves both the static frontend and API endpoints from a single Express server.
