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

Backend Server Set Up #7

Open
monarxxjain opened this issue Mar 14, 2024 · 0 comments
Open

Backend Server Set Up #7

monarxxjain opened this issue Mar 14, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation medium Moderate complexity, intermediate skills

Comments

@monarxxjain
Copy link

monarxxjain commented Mar 14, 2024

Create two servers within the backend folder, one using Node.js ( in a file named server1.js ) and the other using Express.js ( in a file named server2.js ). These servers should listen on ports 5000 and 5001 respectively. Additionally, implement an environment file for managing variables like port numbers and other potential future additions.

Tasks:

  • Set up a simple Node.js server to listen on port 5000.
  • Configure an Express server to listen on port 5001.
  • Implement an environment file for managing variables such as port numbers and potential future additions.

Bonus Task:
In the README.md file, add a section with appropriate heading to the question below.

  1. Is it advisable to have multiple servers in the backend of a project? Why or why not?
  2. Does the decision to use multiple servers depend on the project requirements?
  3. If yes, what factors should influence the decision to use multiple servers, and what actions should be taken accordingly?
@monarxxjain monarxxjain added documentation Improvements or additions to documentation medium Moderate complexity, intermediate skills labels Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation medium Moderate complexity, intermediate skills
Projects
None yet
Development

No branches or pull requests

1 participant