Bookstore is a web application built using the MERN stack, TypeScript, and Tailwind CSS, allowing users to manage books with CRUD operations.
- Book Catalog: Display a list of books with details such as title, author, and date in a table format where you can rearrange your order of performance using the drag-and-drop feature.
- CRUD operations for books: Implement Create, Read, Update, and Delete operations for managing books.
- MongoDB: NoSQL database for storing book data.
- Express.js: Node.js web application framework for building the backend.
- React.js: JavaScript library for building the user interface.
- Node.js: JavaScript runtime environment for running server-side code.
- TypeScript: A superset of JavaScript that adds static typing to the language.
- Tailwind CSS: A utility-first CSS framework for styling web applications.
- Clone the repository:
git clone
- Navigate to the project directory:
cd bookstore
- Install dependencies for both the client and server:
cd frontend npm install cd ../backend npm install
-
Set up environment variables:
-
Create a
.env
file in theserver
directory. -
Define the following variables:
a). mongodb+srv://usernam:[email protected]/?retryWrites=true&w=majority&appName=your_app_name
b). PORT = 4000
-
-
Run the application:
- Start the server:
npm run dev
The application will be running at http://localhost:3000
.
- GET /api/books: Retrieve all books.
- GET /api/books/:id: Retrieve a specific book by ID.
- POST /api/books: Create a new book.
- PUT /api/books/:id: Update a specific book by ID.
- DELETE /api/books/:id: Delete a specific book by ID.
Contributions are welcome! Please follow the contribution guidelines.
This project is licensed under the MIT License.