This is a Project about Airport Flight Display System that uses React for the frontend, Node.js for the backend, and a Datastax Astra DB (built on Apache Cassandra) for the database. The REST API is used for communication between the frontend and backend, allowing the user to retrieve flight information from the database and display it in the frontend.
- Make sure to create Datastax Astra DB account
-
Clone this respository
-
Create a '.env' file in the root directory and add the following environment variables:
- 'URL': URL for REST API Endpoint for DataStax Astra service.
- 'TOKEN': used to authenticate with the DataStax Astra REST API endpoint.
-
To install the required packages, you can run the following command in your terminal:
npm i axios express cors dotenv nodemon
This will install npm packages "axios", "express", "cors", "dotenv", and "nodemon" which are used for making HTTP requests, creating web servers, handling cross-origin resource sharing, managing environment variables, and automatically restarting the server when changes are made to the code, respectively.You can also try running the following command to install the react-scripts package:
npm install react-scripts
Once you have install all the required pakages you need to run it in two different terminal for backend and frontend.
To run the frontend, use the following command:
npm run start:frontend
To run the backend, use the following command:
npm run start:backend