A modern web application for listing and managing books, built with the MERN stack.
- ⚛️ Frontend: React, Vite, Tailwind CSS, TypeScript
- ⚙️ Backend: Node.js, Express
- 💾 Database: MongoDB
- Clone the repository:
git clone git@github.com:sinanptm/books-hub.git
- Navigate into the project directory:
cd books-hub
- Install root dependencies:
pnpm install
- Navigate to the
server
folder and install backend dependencies:cd server
pnpm install
- Set up the client:
cd ../client
pnpm install
Configure the environment variables for both server and client:
MONGODB_URL=mongodb://localhost:27017/ReaderHub
PORT=8000
NODE_ENV=dev
CLIENT_URL=http://localhost:3000
VITE_API_URL=http://localhost:8000
Access the API documentation for this project on Postman.
client/
- Frontend code with React and Tailwindserver/
- Backend code with Node.js and Express
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
- MongoDB - Database
- Node.js & Express - Backend Framework
- React - Frontend Framework
- Tailwind CSS - Styling
- Vite - Build Tool
👨💻 sinaptm