Table of Contents
During the International Fem Hack held in Jan 2022 in Barcelona, and as part of the Back End Challenge, I built a CLI app to send the information about ballistic trajectories and compute them as fast as possible:
Compute the maximum height of the projectile: h_max = ( v0 * v0 ) / ( 2 * g )
Compute the maximum traveled distance x_max = 2 * v0 * sin(alpha) / g
✔️ NodeJS
✔️ Inquirer package
✅ Task 1 → Introduce the data using the command line
✅ Task 2 → Select the way to introduce the data (JSON or Manual)
✅ Task 3 → Compute the maximum height of the projectile
✅ Task 4 → Compute the maximum traveled distance
✅ Task 5 → Save the computed data (Inputs + Results) into a file
To get a local copy up and running follow these simple steps.
- Clone the repo
git clone https://github.com/jempico/femhack_backend_challenge.git
- Install NPM packages
npm install
- Run
npm start
An input.json file is already included in the root directory, to simulate how the app works with JSON files. In case you want to add your own one, make sure to meet the following requirements:
{"input": [
{"alpha": 10, "v0": 20},
{"alpha": 3, "v0": 6},
{"alpha": 4, "v0": 9},
{"alpha": 15, "v0": 15}
]}
Here are some screenshots of the results obtained:
Jemimah Pico - Portfolio - Linkedin - jpfilarca@gmail.com
Project Link: https://github.com/jempico/femhack_backend_challenge