Giter Site home page Giter Site logo

exercice-starwars's Introduction

A Star Wars NodeJS Exercice that ended up in python...

This exercise is using the following Star Wars API: https://swapi.dev/

Goal

The main target is to provide the total diameter of the planets with mountains and with a water surface for a specific film.

For example:

In Film #6 there are 2 planets that have mountains and a water surface (> 0).
- Alderaan, diameter: 12500
- Naboo, diameter: 12120
Total diameter: 24620

We want to know if you can:

  • Consume and manipulate data
  • Send concurrent calls
  • Manipulate received data
  • Structure your work flow

Instructions

  • The application should be a CLI.
  • The application should accept the ${filmId} as only entry point parameter.
  • The application should catch any error.
  • The application should print the sum of all diameters of concerned planets.
  • The application should use npm and not yarn.

Note

There are a lot of possibilities to solve this exercise but feel free to show us what you can do and what you are worth.

Final result

Your app should work as the following:

$ node index.js 6
> 24620

Well, it ended being used like this:

$ python3 index.py 6
> 24620

exercice-starwars's People

Contributors

darkyne avatar

Watchers

 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.