This is a demo Express API that was created for the purpose of teaching Software Engineering Club members how APIs work and how to develop one.
You will need to have the following installed to run this app:
- NodeJS
- Postman
- Optional Visual Studio Code
Open the command line or terminal and navigate to the root of this project (where this README is located). Type the following to install the various dependencies you need to run the project:
$ npm install
If you don't have the 'npm' command in your terminal/console, then you have not downloaded and installed NodeJS or there was a problem with your installation.
You can then type the following to start the app from the terminal/console:
$ npm start
Use Postman to test the various routes that are in the API, the base URL should be http://localhost:3000
Field | Type |
---|---|
id | String |
name | String |
level | Number |
class | String |
JSON Example:
{
"id": "1",
"name": "The Black Arrow",
"level": 20,
"class": "rogue"
}