https://clean-crown-duck.cyclic.app/.
- Description: Create a new book.
- Request Body: JSON object representing the book.
- Response: The newly created book as JSON.
- Description: Get a list of all books.
- Response: List of books as JSON.
- Description: Get a specific book by ID.
- Response: The book as JSON.
- Description: Update a specific book by ID.
- Request Body: JSON object with book updates.
- Response: The updated book as JSON.
- Description: Delete a specific book by ID.
- Response: A success message.
-
Clone the repository:
git clone <repository-url>
-
Clone the repository:
npm install
-
Set up your environment variables...:
Decisions and Assumptions
We assume that books are represented as JSON objects with properties like title, author, and summary.
We use MongoDB as the database for storing book data. The connection string is specified in the .env file.
We allow cross-origin requests from the specific origin 'https://6541375d6562233dc3c2ea94--visionary-salmiakki-dce795.netlify.app' in the CORS configuration.
The application listens on port 6100.
-
React
-
JavaScript
-
HTML5
-
CSS3
-Node.js -Express.js -Mongodb