Bookstream is a dynamic, feature-rich bookstore application designed to provide a seamless user experience. With its clean, responsive interface, powerful search capabilities, and secure payment processing, Bookstream is ideal for developers building or contributing to an online bookstore.
- Features
- Tech Stack
- Installation
- Common Issues
- Usage Examples
- License
- Getting Started
- Learn More
- Deploy on Vercel
- Contributing
- User Authentication: Secure login and registration using JWT.
- Book Management: Comprehensive book management, including add, edit, and delete functionalities.
- Advanced Search: Powerful search functionality to filter books by various criteria.
- Secure Payment: Integrated secure payment processing for book purchases.
- Responsive Design: Optimized for mobile, tablet, and desktop.
- Frontend: Next.js, Tailwind CSS
- Backend: Node.js, Express
- Database: MongoDB
- Authentication: JSON Web Tokens (JWT)
-
Clone the repository:
git clone https://github.com/yashksaini-coder/BookStream.git
-
Install dependencies:
cd BookStream npm install
-
Create Environment Variables:
- Create a
.env.local
file and add the following:MONGODB_URI=your_mongo_db_uri JWT_SECRET=your_jwt_secret NEXT_PUBLIC_PAYMENT_API_KEY=your_payment_api_key
- Create a
-
Run the application in development:
npm run dev
Access the app at
http://localhost:3000
.
If you encounter issues, refer to the Common Issues section for troubleshooting steps.
When starting the server with npm start
, you may see:
Error: Could not find a production build in the '.next' directory.
Solution: Run npm run build
before starting the server.
You might encounter errors related to unescaped characters in JSX:
Error: `'` can be escaped with `'`, `‘`, `'`, `’`. react/no-unescaped-entities
Solution: Escape unescaped characters in your JSX or disable the ESLint rule in your configuration.
Navigate to the login page, enter your credentials, and upon successful login, you’ll be redirected to the homepage.
In the book management section, fill out the form with book details (e.g., title, author, genre) to add a new book.
This project is licensed under the MIT License. See the LICENSE file for details.
-
Run the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.
-
Edit and Update:
- Modify
app/page.tsx
. The page auto-updates as you edit.
- Modify
To learn more about Next.js, check out these resources:
The easiest way to deploy your Next.js app is with Vercel.
Visit the Next.js deployment documentation for more details.
We welcome contributions! Here’s how to contribute:
- Fork the repository.
- Create your feature branch:
git checkout -b feature/YourFeature
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin feature/YourFeature
- Open a pull request.
Thanks to all contributors who have helped make this project better!
Happy coding! 😊