📚 Books Hub

A modern web application for listing and managing books, built with the MERN stack.

API Documentation Live App

✨ Tech Stack

  • ⚛️ Frontend: React, Vite, Tailwind CSS, TypeScript
  • ⚙️ Backend: Node.js, Express
  • 💾 Database: MongoDB

🚀 Getting Started

  1. Clone the repository:
    git clone git@github.com:sinanptm/books-hub.git
  2. Navigate into the project directory:
    cd books-hub
  3. Install root dependencies:
    pnpm install
  4. Navigate to the server folder and install backend dependencies:
    cd server
    pnpm install
  5. Set up the client:
    cd ../client
    pnpm install

🔑 Environment Variables

Configure the environment variables for both server and client:

Server

MONGODB_URL=mongodb://localhost:27017/ReaderHub
PORT=8000
NODE_ENV=dev
CLIENT_URL=http://localhost:3000

Client

VITE_API_URL=http://localhost:8000

📋 API Documentation

Access the API documentation for this project on Postman.

📂 Project Structure

  • client/ - Frontend code with React and Tailwind
  • server/ - Backend code with Node.js and Express

💻 Running the App

You can start the entire application from the root directory:

pnpm start

Or, to start each part individually:

To start the server:

cd server
pnpm start

To start the client:

cd client
pnpm dev

🛠️ Tools Used

  • MongoDB - Database
  • Node.js & Express - Backend Framework
  • React - Frontend Framework
  • Tailwind CSS - Styling
  • Vite - Build Tool

🖋️ Made by

👨‍💻 sinaptm