This project is a simple Node application that manages heroes.
To install the project, follow these steps:
- Clone the repository:
git clone <repository-url>
- Install the dependencies:
npm install
To run the project, use the command: npm start
To run the tests, use the command: npm test
The project provides the following endpoints:
GET /heroes
: Fetch all heroesPOST /heroes
: Create a new hero
This project uses the following dependencies:
node:test
: For running testsnode:assert
: For making assertions in testsnode:fs/promises
: For reading and writing to the file system