Skip to content

Latest commit

 

History

History
68 lines (43 loc) · 1.58 KB

README.md

File metadata and controls

68 lines (43 loc) · 1.58 KB

aircraft-tracker

This application visualises the coverage area of a single antenna receiving data from air traffic.

Scripts

Nodemon

To start nodemon for the application's backend server simply execute npm run start.

Compilation of SASS

In order to compile SASS into regular CSS either use npm run compilesass / sass main.sass main.css to process all changes at once or use sass --watch main.sass main.css to continuously watch for changes and process them directly.

Installation

1. Clone this repository

git clone https://github.com/htl-anichstrasse/aircraft-tracker.git

2. Install dependencies

npm install

3. Setup MySQL database

Table structure

4. Enter required environment information in .env file

touch .env

Environment configuration using dotenv

Variable Description
MYSQL_HOST MySQL hostname
MYSQL_USER MySQL username
MYSQL_PASSWORD Password for the MySQL user
MYSQL_DB Name of the MySQL database to be used
MYSQL_TABLE_NAME Name of the table to be used (for example "dump1090data")
PORT Port of the express REST server

5. Enter backend host address in main.js

const HOST_ADDRESS = "http://localhost:1234";

Running the application

npm run start

Then fire up site/index.html in your web browser.

License

Licensed under the MIT license. See LICENSE for more information.