BUG: Fix ReferenceError in index.js file
Is there an existing issue for this?
- [X] I have searched the existing issues
What happened?
There is currently a ReferenceError occurring in the index.js file of the backend. The error message indicates that the port variable is not defined. This issue needs to be addressed to ensure that the backend server runs without errors.
Steps to Reproduce:
Clone the repository.
- Navigate to the backend directory.
- Run node index.js to start the backend server.
Expected Behavior: The backend server should start without errors and should print the message "Server is running on port {port}" to indicate that it is listening on the specified port.
Actual Behavior:
The following error occurs:
Proposed Solution:
Define the port variable with an appropriate value before using it in the app.listen() function in the index.js file.
Record
- [X] I agree to follow this project's Code of Conduct
- [X] I have checked the existing issues
- [X] I'm a GSSOC'24 contributor
- [X] I want to work on this issue
Congratulations, @rugved0102! 🎉 Thank you for creating your issue. Your contribution is greatly appreciated and we look forward to working with you to resolve the issue. Keep up the great work! As per GSSoC'24 guidelines the person who raises the issue should be assigned for that issue. But if that person doesn't want to work on that issue the first come fist policy is follwed.
We'd also like to invite you to our Discord server! Join us on discord.
We will promptly review your changes and offer feedback. Keep up the excellent work! Kindly remember to check our contributing guidelines
so what's actually wrong in the code can you explain.