Skip to content

Commit

Permalink
Javascript interview practise: Star Wars API.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tafara-N committed Aug 31, 2024
1 parent 9f481d0 commit 8bde662
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions 0x06-starwars_api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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`
Expand All @@ -61,15 +61,15 @@ $ 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
```

**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
Expand All @@ -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
Expand Down

0 comments on commit 8bde662

Please sign in to comment.