FavLib is a web application that allows users to share and explore their favorite books with others. Built with the MERN stack, JWT authentication, Zustand for state management, and styled using Tailwind CSS, FavLib provides a seamless and visually appealing platform for book enthusiasts.
Make sure you have the following installed:
Clone the repository:
git clone https://github.com/ezeigboemmanuel/FavLib.git
cd favlib
Install dependencies for both frontend and backend:
npm install
cd frontend
npm install
Configure environment variables:
Create a .env
file in the server
directory with the following variables:
PORT = 5000
MONGO_URI=your_mongodb_uri
CLIENT_URL=http://localhost:5173
JWT_SECRET=your_random_secret
CLOUD_NAME=cloudinary_cloud_name
API_KEY=cloudinary_apikey
API_SECRET=cloudinary_apisecret
Start the development servers:
nodemon backend/server.js
cd frontend
npm run dev
Open your browser and visit http://localhost:5173
to access FavLib.
Contributions are welcome! Follow these steps to contribute:
git checkout -b feature-name
git commit -m "Add new feature"
git push origin feature-name
This project is licensed under the MIT License.