Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Socket.io #143

Closed
wants to merge 0 commits into from
Closed

Added Socket.io #143

wants to merge 0 commits into from

Conversation

TheAdich
Copy link

@TheAdich TheAdich commented Oct 10, 2024

Resolves #126

PR Fixes:

  • 1 Integrated Socket.io
  • 2

Checklist before requesting a review

  • I have pull latest changes from main branch
  • I have tested the changes locally
  • I have run npm run lint:fix locally
  • I have performed a self-review of my code
  • I assure there is no similar/duplicate pull request regarding same issue

Copy link

vercel bot commented Oct 10, 2024

@TheAdich is attempting to deploy a commit to the Dhanush Nehru's projects Team on Vercel.

A member of the Team first needs to authorize it.

@TheAdich
Copy link
Author

Hello @DhanushNehru Backend is being hosted on render it is running on a free version that is after a period of inactivity the server goes down and takes time to restart once a request is made . So either if you have other plans to host you can host on other platform too i have added server folder within the root directory of your project you could look into it.

@DhanushNehru
Copy link
Owner

DhanushNehru commented Oct 11, 2024

Hi @TheAdich please mention the issue number properly in the PR

Also record a video on your implementation and attach it. And also how to configure things in render.com

Copy link

vercel bot commented Oct 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
custom-code-editor ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 11, 2024 0:53am

@Anikesh02
Copy link
Contributor

Hello @DhanushNehru Backend is being hosted on render it is running on a free version that is after a period of inactivity the server goes down and takes time to restart once a request is made . So either if you have other plans to host you can host on other platform too i have added server folder within the root directory of your project you could look into it.

To keep your backend alive every time, you can create a job in cron-job.org which will send a request to the backend every 1 min, solving the server going down issue.

@TheAdich
Copy link
Author

screen-capture.webm

@TheAdich
Copy link
Author

On render you just need to choose web service and choose the repo where your backend is located in my case i had created a seperate repo and on render selected that repo
Screenshot 2024-10-11 193901
Yo
Screenshot 2024-10-11 193922
Screenshot 2024-10-11 193947
in the build command just write npm install
and in the start command write node index.js and choose the free plan and click on deploy
However if you are locally setting up the project you don;t need to configure the render

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integrating Socket.io for real time coding with peers
3 participants