Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iinaa-eimrit/book-inventory
https://github.com/iinaa-eimrit/book-inventory
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/iinaa-eimrit/book-inventory
- Owner: iinaa-eimrit
- Created: 2024-11-28T18:14:35.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-28T19:19:49.000Z (about 2 months ago)
- Last Synced: 2024-11-28T19:33:30.473Z (about 2 months ago)
- Language: JavaScript
- Homepage: https://book-inventory-eta.vercel.app
- Size: 13.1 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Build Full Stack Bookstore App (MERN)
## How to Run This Project
### Frontend Setup
1. **Clone or Unzip the Project:**
- Clone the repository or extract the project folder.2. **Navigate to the Frontend Directory:**
cd frontend3. **Create Environment Variables:**
- In the `frontend` root directory (same level as `package.json`), create a `.env.local` file with the following content:
# Configure Firebase
VITE_API_KEY="AIzaSyCXvDIC4MPrkaMdeg_O2iij88wLpfj3qBA"
VITE_AUTH_DOMAIN="book-store-mern-app.firebaseapp.com"
VITE_PROJECT_ID="book-store-mern-app"
VITE_STORAGE_BUCKET="book-store-mern-app.appspot.com"
VITE_MESSAGING_SENDER_ID="205632822247"
VITE_APP_ID="1:205632822247:web:b0db0ec66bf6de0bbb3b42"4. **Install Dependencies:**
npm install
5. **Run the Frontend:**
npm run dev
---
### Backend Setup
1. **Clone or Unzip the Project:**
- Clone the repository or extract the project folder.2. **Navigate to the Backend Directory:**
cd backend
3. **Install Dependencies:**
npm install
4. **Create Environment Variables:**
- In the `backend` root directory (same level as `package.json`), create a `.env` file with the following content:# MongoDB URL
DB_URL="mongodb+srv://:@cluster0.mongodb.net/book-store?retryWrites=true&w=majority"# JWT Secret Key
JWT_SECRET_KEY="bc992a20cb6706f741433686be814e3df45e57ea1c2fc85f9dbb0ef7df12308a669bfa7c976368ff32e32f6541480ce9ec1b122242f9b1257ab669026aeaf16"> **Note:**
> - Replace `` and `` with your MongoDB credentials.
> - Update the JWT secret key as per your security needs.5. **Run the Backend:**
npm run start:dev