This is a simple example of a REST API may look like, done in Express.
- Clone this repository
git clone https://github.com/farrelmahaztra/express-api.git
- Move into the directory
cd express-api
- Install dependencies
npm install
- Run the server
node index.js
- Like with last week's state management talk, this isn't the only way to create a REST API. There's plenty to improve!