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

Implemented a simple GET endpoint that returns 'Hello, World\!' message #52

Merged

Conversation

Valley-15
Copy link
Contributor

Description

This PR implements a basic GET endpoint in the Express server that responds with a "Hello, World!" message when accessed at the root URL (/).

Changes:

  • Added a simple GET route in the Express application that returns the message "Hello, World!".
  • Configured the server to listen on a port defined by the .env file or default to port 3000.

How to Test:

  1. Clone the repository and check out the branch feature/hello-world-endpoint.
  2. Run npm install to install the dependencies.
  3. Start the server by running npm start.
  4. Open a browser or use curl to access http://localhost:<PORT> and verify that it returns "Hello, World!".

Additional Information:

  • Make sure your .env file includes a PORT variable to specify the port on which the server will run.

Fixes:

@Valley-15
Copy link
Contributor Author

Screenshot 2024-10-16 190128

the above shows output for the issue #24

@muhtalhakhan muhtalhakhan merged commit e2569fe into muhtalhakhan:main Oct 16, 2024
5 of 6 checks passed
@muhtalhakhan muhtalhakhan added hacktoberfest Helps to differentiate Hacktoberfest PRs hacktoberfest-accepted Helps to achieve Hacktoberfest PRs labels Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest Helps to differentiate Hacktoberfest PRs hacktoberfest-accepted Helps to achieve Hacktoberfest PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants