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