this is the backend repo for the ASAP, Aircraft Status and Position web application.
For general use
npm install express knex pg --save
Needed for development
npm install --save-dev jest supertest nodemon
Also requires a docker continer with a postgresql database.
Be sure to edit the knexfile.js with the connection information for your database.
To run tests in this backend
npm test
Accepts GET and POST Use for a collection of current aircraft and their status. Or to post a new status.
If requesting a limited number of status please use a query. limit = the number you want to recieve offset = the start point to pull the limit.
limit = 10 & offset 10 will pull the next 10 statuses after status 10.
Accepts GET, PATCH and DELETE
Request a single status or patch/delete a status by status id.
Accepts GET only. Provides a list of bases currently in the database.
Accepts GET only. Provides a list of aircraft models currently in the database.
{
"status_tail_number": string,
"aircraft_id": int,
"base_id": int,
"status_is_flyable": boolean,
"status_description": string,
"status_priority": int
}
Cherokee Walters: cwalters162
Mark Arbuckle: warbuckle117