<commit_before># flightSearch

This is a simple implementation of FlightSearch using Node+Express backend which has the below endpoints -  

- /airlines
  
  Lists all available airlines from the Flight API provided by Locomote.
- /airports
  
  Lists all matching airports for the provided city from the Flight API provided by Locomote.

  eg: /airports?q=Melbourne

- /search
  
  Provides all available flights for provided date and 2 dates earlier and later.

  Accepts below query parameters
  
  - date - in format YYYY-MM-DD.
  
  - from - Source city name.
  
  - to - destination city name.

  eg: /search?date=2017-05-10&from=Melbourne&to=Sydney

## To run the project

```sh
$ git clone https://github.com/suvihas/flightSearch.git # or clone your own fork
$ cd flightSearch
$ sh start.sh
(This installs the required packages and starts the server listening on port 3000)

```
## Note
- This is only a backend API implementation. 
- You may use postman or similar tool to pump in GET requests to API.<commit_msg>Add note to README on date format.<commit_after># flightSearch

This is a simple implementation of FlightSearch using Node+Express backend which has the below endpoints -  

- /airlines
  
  Lists all available airlines from the Flight API provided by Locomote.
- /airports
  
  Lists all matching airports for the provided city from the Flight API provided by Locomote.

  eg: /airports?q=Melbourne

- /search
  
  Provides all available flights for provided date and 2 dates earlier and later.

  Accepts below query parameters
  
  - date - in format YYYY-MM-DD.
  
  - from - Source city name.
  
  - to - destination city name.

  eg: /search?date=2017-05-10&from=Melbourne&to=Sydney

  Note: The date format must be matching to YYYY-MM-DD, else the server will crash sometimes.

## To run the project

```sh
$ git clone https://github.com/suvihas/flightSearch.git # or clone your own fork
$ cd flightSearch
$ sh start.sh
(This installs the required packages and starts the server listening on port 3000)

```
## Note
- This is only a backend API implementation. 
- You may use postman or similar tool to pump in GET requests to API.
{'fraction_non_alphanumeric': 0.06574074074074074, 'fraction_numerical': 0.012037037037037037, 'mean_word_length': 3.3656565656565656, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3414250', 'n_tokens_mistral': 658, 'n_tokens_neox': 612, 'n_words': 282}