https://github.com/vinodnextcoder/ride-sharing-geektrust
Ride Sharing nodejs geektrust
https://github.com/vinodnextcoder/ride-sharing-geektrust
geekstrust-nodejs geektrust-backend geektrust-challenges geektrust-javascript geektrust-mocha geektrust-ride-sharing geektrust-solutions geektrust-unit-test
Last synced: 3 months ago
JSON representation
Ride Sharing nodejs geektrust
- Host: GitHub
- URL: https://github.com/vinodnextcoder/ride-sharing-geektrust
- Owner: vinodnextcoder
- License: mit
- Created: 2023-05-28T10:27:06.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-28T12:09:58.000Z (almost 3 years ago)
- Last Synced: 2024-12-29T05:12:08.242Z (about 1 year ago)
- Topics: geekstrust-nodejs, geektrust-backend, geektrust-challenges, geektrust-javascript, geektrust-mocha, geektrust-ride-sharing, geektrust-solutions, geektrust-unit-test
- Language: JavaScript
- Homepage:
- Size: 97.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# geektrust ride sharing
* Your task is to build a solution that will help to match riders with drivers based on their location and generate a bill for the ride.
# Pre-requisites
* NodeJS 12.6.0/14.15.4/16.10.0
* npm
# How to run the code
We have provided scripts to execute the code.
Use `run.sh` if you are Linux/Unix/macOS Operating systems and `run.bat` if you are on Windows. Both the files run the commands silently and prints only output from the input file `sample_input/input1.txt`. You are supposed to add the input commands in the file from the appropriate problem statement.
Internally both the scripts run the following commands
* `npm ci --silent` - This will build the solution downloading the necessary dependencies.
* Once the `npm install` from the previous build process is complete, we will execute the program using the command
`npm start --silent sample_input/input1.txt`
# How to execute the unit tests
Mocha based test cases are executed with the following command from the root folder
`mocha test`