-
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/pustakasaraswatha.git
-
Setup Backend:
- Navigate to the
server
folder using:cd server
- Install dependencies:
npm install
- Create a
.env
file in theserver
folder and add your MongoDB connection string:ATLAS_STRING=mongodb://localhost:27017/your-database-name
- Start the backend:
node index.js or npm run start
- Navigate to the
-
Setup Frontend:
- Navigate to the
search
folder using:cd publisher-portal
- Install dependencies:
npm install
- Create a
.env.local
file in thepublisher-portal
folder and add your clerk api:
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY='publishable key' CLERK_SECRET_KEY='secret key'
- Create a
- Start the client:
npm run dev
- Navigate to the
-
Deploying:
- To deploy on a server:
- Navigate to the
publisher-portal
folder:cd publisher-portal
- 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
.env.local
file in thepublisher-portal
folder is properly configured with your clerk api.
- Ensure that the
-
Dependencies:
- Make sure you have Node.js and npm installed on your machine before running the setup.