Skip to content

Darkmift/JsBasicsAnalysaQuickCourse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Book API

This project is an Express application for managing a collection of books.

Getting Started

Follow these instructions to set up and run the project on your local machine.

Prerequisites

  • Node.js (v14 or higher)
  • npm (v6 or higher)

Installation

  1. Clone the repository:

    git clone <repository-url>
  2. Navigate to the book-api directory שמג Install the dependencies:

     npm install
  3. Running the Application To start the Express server, run:

     npm start

The server will start on the port specified in the environment variables or default to port 3000.

Project Structure

  • data/: Contains the data files.
  • books.js: Sample data for books.
  • index.js: Entry point of the Express application.
  • package.json: Contains the project metadata and dependencies.

API Endpoints

  • GET /books: Retrieve a list of all books.
  • POST /books: Add a new book.
  • GET /books/:id: Retrieve a specific book by ID.
  • PUT /books/:id: Update a specific book by ID.
  • DELETE /books/:id: Delete a specific book by ID.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published