-
Clone the Repository:
- Ensure that you have Git installed on your machine.
- Run the following command in your terminal:
git clone https://github.com/sanchaya/isbn-kannada.git
-
Setup Backend:
- Navigate to the
server
folder using:cd isbn-kannada/server
- Install dependencies:
npm install
- Create a
.env
file in theserver
folder and add your MongoDB connection string:URI=mongodb://localhost:27017/your-database-name
- Start the backend:
node index.js
- Navigate to the
-
Setup Frontend:
- Navigate to the
search
folder using:cd isbn-kannada/search
- Install dependencies:
npm install
- Start the client:
npm run dev
- Navigate to the
-
Deploying:
- To deploy on a server:
- Navigate to the
search
folder:cd isbn-kannada/search
- Build the project:
npm run build
- Deploy the built files on your server.
- Navigate to the
- To deploy on a server:
-
Environment Variables:
- Ensure that the
.env
file in theserver
folder is properly configured with your MongoDB connection string.
- Ensure that the
-
Dependencies:
- Make sure you have Node.js and npm installed on your machine before running the setup.
- The node version used here is v20.10.0 and next version is 14.0.4