This is a full-stack bookstore application built using the MERN (MongoDB, Express.js, React.js, Node.js) stack. The application allows users to browse and purchase books. It features user authentication using Firebase Authentication.
- Browse books
- Search for books
- User authentication (sign up, login, logout)
- Add books
- Edit books
- Delete books
- Frontend: React.js, Tailwind CSS
- Backend: Express.js
- Database: MongoDB
- Authentication: Firebase Authentication
## Getting Started
To get a local copy up and running follow these simple steps:
1. Clone the repository:
```bash
git clone https://github.com/your-username/bookstore-mern-stack.git
-
Navigate to the frontend directory:
cd app-client
-
Install dependencies:
npm install
-
Run the frontend server:
npm start
-
Open another terminal window/tab, navigate to the backend directory:
cd ../app-server
-
Install backend dependencies:
npm install
-
Run the backend server:
npm start
-
Your application is now running locally. You can access it at
http://localhost:5017
.
-
Create a Firebase project at Firebase Console.
-
Add a web app to your Firebase project.
-
Copy the Firebase configuration snippet.
-
Navigate to
app-client/src/firebaseConfig.js
and replace the placeholder values with your Firebase configuration.
- Hat tip to anyone whose code was used
- Inspiration
- etc