docker compose up
First, Clone the repo:
git clone https://github.com/DkDeepak001/docsClone.git
Install the dependencies:
yarn install
create a .env
file and add the following:
DATABASE_URL="mongodb://localhost:27017/docsClone"
Create a database schema
yarn prisma db push
yarn prisma generate
Start the Nextjs development server:
yarn run dev
Start the webSocket server:
cd socket
yarn install
node index.js
Open http://localhost:3000 with your browser to see the result.