Fetch a resource by making a network request in TypeScript
- Install
typescript
andts-node
globally:npm install -g typescript ts-node
- Fork and clone this repository:
git clone https://github.com/Your-Username/fetch-resource.git
- Move into the root directory:
cd fetch-resource
- Compile
index.ts
:tsc index.ts
- Execute
index.js
:node index.js
orindex.ts
:ts-node index.ts
The id of the album: 1
The title of the album: quidem molestiae enim