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.
Clone the repository:
git clone https://github.com/yashksaini-coder/BookStream.git
Install dependencies:
cd BookStream
npm install
Create Environment Variables:
.env
file (in backend workspace) by below command and add the following:
cd /backend
cp .env.example .env
MONGODB_URI=your_mongo_db_uri
JWT_SECRET=your_jwt_secret
NEXT_PUBLIC_PAYMENT_API_KEY=your_payment_api_key
Run the application:
cd ../
npm run start
npm run start:backend
npm run start:frontend
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.
Run the development server:
npm run dev
npm run dev:backend
npm run dev:frontend
Open http://localhost:3000 with your browser to see the result.
Edit and Update:
app/page.tsx
. The page auto-updates as you edit.The roadmap outlines the upcoming features and improvements planned for Bookstream:
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:
git checkout -b feature/YourFeature
git commit -m 'Add some feature'
git push origin feature/YourFeature
Thanks to all contributors who have helped make this project better!
This project is licensed under the MIT License. See the LICENSE file for details.
Happy coding! π