From 8bde662405804e00d662b2d49a90ddd6d006fc7d Mon Sep 17 00:00:00 2001 From: Tafara-N Date: Sat, 31 Aug 2024 13:57:55 +0200 Subject: [PATCH] Javascript interview practise: Star Wars API. --- 0x06-starwars_api/README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/0x06-starwars_api/README.md b/0x06-starwars_api/README.md index e6338a8..2cf61d6 100644 --- a/0x06-starwars_api/README.md +++ b/0x06-starwars_api/README.md @@ -8,34 +8,34 @@ interaction, and asynchronous programming in JavaScript. 1. **HTTP Requests in JavaScript:** - Understanding how to make HTTP requests to external services using the `request` module or alternatives like `fetch` in Node.js. - - [A Complete Guide to Making HTTP Requests in Node.js](https://intranet.alxswe.com/rltoken/iRse23lnV4gAsD9JJTJMMQ) + - [A Complete Guide to Making HTTP Requests in Node.js](https://www.memberstack.com/blog/node-http-request) 2. **Working with APIs:** - Understanding the basics of RESTful APIs and how to interact with them. - Parsing JSON data returned by APIs. - - [Working with APIs in JavaScript](https://intranet.alxswe.com/rltoken/KyGS_uB68mLaP5irrH8JVA) + - [Working with APIs in JavaScript](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Client-side_web_APIs/Introduction) 3. **Asynchronous Programming:** - Managing asynchronous operations with callbacks, promises, and async/await syntax. - Handling API response data asynchronously. - - [Asynchronous Programming in JavaScript](https://intranet.alxswe.com/rltoken/tdKMGJrRstCkXSReNfRFpQ) + - [Asynchronous Programming in JavaScript](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Asynchronous) 4. **Command Line Arguments in Node.js:** - Using the `process.argv` array to access command-line arguments passed to a Node.js script. - - [How to Parse Command Line Arguments in Node.js](https://intranet.alxswe.com/rltoken/oWBOWJZLF_D9GfOydPz6Kg) + - [How to Parse Command Line Arguments in Node.js](https://tecadmin.net/how-to-parse-command-line-arguments-in-nodejs/) 5. **Array Manipulation and Iteration:** - Iterating over arrays and manipulating data structures to format and display character names. - - [JavaScript Array Methods](https://intranet.alxswe.com/rltoken/8zdG036OYYvVco_AZTExoA) + - [JavaScript Array Methods](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array) By familiarizing yourself with these concepts and resources, you will be able to efficiently retrieve, process, and display Star Wars characters from the specified movie using the Star Wars API, demonstrating your ability to work with external APIs and manage asynchronous code in JavaScript. # Additional Resources -- [Mock Technical Interview](https://intranet.alxswe.com/rltoken/du6hlPQm6qi4A7eEursNhQ) +- [Mock Technical Interview](https://www.youtube.com/watch?v=bmqZ5AhNr3g) # Requirements @@ -45,7 +45,7 @@ By familiarizing yourself with these concepts and resources, you will be able to - All your files should end with a new line - The first line of all your files should be exactly `#!/usr/bin/node` - A `README.md` file, at the root of the folder of the project, is mandatory -- Your code should be `semistandard` compliant. [Rules of Standard](https://intranet.alxswe.com/rltoken/9P3gH5mVdJCEKL87E-IMaA) + [semicolons on top](https://intranet.alxswe.com/rltoken/WjMvQfBMKBdsNUuHyg55Dw). Also as reference: [AirBnB style](https://intranet.alxswe.com/rltoken/Xp81RT-Sfi7uE_kNCSXunw) +- Your code should be `semistandard` compliant. [Rules of Standard](https://standardjs.com/rules.html) + [semicolons on top](https://github.com/standard/semistandard). Also as reference: [AirBnB style](https://github.com/airbnb/javascript) - All your files must be executable - The length of your files will be tested using `wc` - You are not allowed to use `var` @@ -61,7 +61,7 @@ $ sudo apt-get install -y nodejs **Install semi-standard** -[Documentation](https://intranet.alxswe.com/rltoken/WjMvQfBMKBdsNUuHyg55Dw) +[Documentation](https://github.com/standard/semistandard) ```bash $ sudo npm install semistandard --global @@ -69,7 +69,7 @@ $ sudo npm install semistandard --global **Install `request` module and use it** -[Documentation](https://intranet.alxswe.com/rltoken/BWz2gc45S-nZaxEY6GA6Zw) +[Documentation](https://github.com/request/request) ```bash $ sudo npm install request --global @@ -84,7 +84,7 @@ Write a script that prints all characters of a Star Wars movie: - The first positional argument passed is the Movie ID - example: `3 = “Return of the Jedi”` - Display one character name per line **in the same order as the “characters” list in the /`films`/ endpoint** -- You must use the [Star wars API](https://intranet.alxswe.com/rltoken/gh_NaSUk9QlXHVoACFU-tg) +- You must use the [Star wars API](https://swapi-api.alx-tools.com/) - You must use the `request` module ```bash