This project is a JSON Server implementation of an API for the Book-Bound API Challenge.
JSON Server is extremely simple to use from the command line so I have also included server.js
to demonstrate setting up a custom server in code.
The API Challenge involves creating the same API with book and author endpoints using as many different implementations as possible.
Download the project from GitHub. Run npm install
to install package dependencies.
Run npm start
to start JSON server using command-line attributes or run npm run server
to start the custom server. Navigate to http://localhost:3000
to view the endpoint.
http://localhost:3000/api/books
http://localhost:3000/api/authors