Git Product home page Git Product logo

asap_backend's Introduction

ASAP_BackEnd

this is the backend repo for the ASAP, Aircraft Status and Position web application.

Installation instructions

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.

Testing the Backend

WARNING TESTING THE BACKEND DOES A FULL ROLLBACK, MIGRATION, AND SEED. DO NOT TEST AFTER MODIFYING THE DATABASE

To run tests in this backend

npm test

End Points

/status

Accepts GET and POST Use for a collection of current aircraft and their status. Or to post a new status.

/status?limit=0&&offset=0

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.

/status/:status_id

Accepts GET, PATCH and DELETE

Request a single status or patch/delete a status by status id.

/base

Accepts GET only. Provides a list of bases currently in the database.

/aircraft

Accepts GET only. Provides a list of aircraft models currently in the database.

template for POST and Patch

    {
        "status_tail_number": string,
        "aircraft_id": int,
        "base_id": int,
        "status_is_flyable": boolean,
        "status_description": string,
        "status_priority": int
    }

Contributors

Cherokee Walters: cwalters162

Mark Arbuckle: warbuckle117

asap_backend's People

Contributors

warbuckle117 avatar efillman avatar cwalters162 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.