This challenge is to help participants learn how to build a simple web server in Node without any frameworks, using built-in http.server.
/projects/node-http-exercise.mdThese are the endpoints they need to create and the behavior they should exhibit. For each one, describe what needs to be created. Feel free to include example code snippets for the first few under a Hints section.
/spin should never close the socket/hangup should immediate close with no response/head should respond with 204 /hello should respond with 200 and text body of "Hello"/echo?message=xyz - should respond with 200 and the message as the body/error - should respond with 500 /time.json - should respond with 200, body with Content-Type of application/json and { "now": "Sat Feb 15 2020 14:29:20 GMT-0800" } where it's the current time of the response/github should respond with 302 that redirects to Techtonica GitHub pageCreate Postman tests that the reader can run themselves while doing this assignment to see if they got on track. (note: the first 2 cannot be tested with Postman).
Export these tests as a file as part of your Pull Request.
For FAQs on how to contribute, see: https://github.com/Techtonica/curriculum/blob/main/CONTRIBUTING.md
One interesting possibility I worked on with @lisaau was adding a custom 302 redirect to demonstrate how certain headers have agreed-upon meaning and will trigger behavior by clients like browsers.
Hey, I would like to try this issue.
@imrishabh18 Now you could start working on this issue.
@Kundan28 Hey, could you explain from where should i begin ?
@alodahl Could you please help @imrishabh18 with this.
As I too is not able to understand the Challenge: Routes to Build section.
The goal here is to write a challenge outline for the apprentices: create their own API. @vegetabill has listed what he wants in the challenge, and your task is to make this a clear set of directions for building the API with some hints. You can use this template for the challenge directions : https://github.com/Techtonica/curriculum/blob/master/_templates/project.md
Hi @imrishabh18 are you working on this? We haven't heard from you in a month.
Nope, i am not.
@Kundan28 Can I work on this issue??
@Kundan28 Can I work on this issue??
You could now start working on this issue. I've assigned you to this issue.
Please have a look at this https://bit.ly/2wQxqLy and fill out the required forms before starting.
@Kundan28 @alodahl Do I have to write how to create node http server exercise without express or just how to do that exercise ?? Can you please tell me.
@Kundan28 @alodahl Do I have to write how to create node http server exercise without express or just how to do that exercise ?? Can you please tell me.
@vegetabill
@Kundan28 @alodahl Do I have to write how to create node http server exercise without express or just how to do that exercise ?? Can you please tell me.
@vegetabill Can you please??
@Kuljeet-123 sorry I missed this.
Create a new markdown file showing apprentices how to create node http server, but don't use express in the lesson.
I know it's been a while , so please respond whether you are or are not still interested in this issue.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi @alodahl!
I'm free and super interested in working on this issue!
Thanks @sylvaindessureault! Please look at our contributing file and let us know if you have questions.
Excellent. Already did steps 0 and 0.5.
Will start working on this tomorrow.
Thanks!
Hi @alodahl !
I'm so sorry, I had a mishap on my account and had to recreate it. I'm still working on this issue. Let me know if you want me to continue or pass the bar to someone else since I unassigned myself above.
Also, for this issue, is it OK if I work on a branch and make the PR from that branch?
As for the .js solution file, do I simply attach the file to the PR?
@sylvaindessureault yes, branch away!
@vegetabill where do you want the solution file? It seems a little too easy to put it in the same directory.
Thanks @alodahl! If you want you can reassign me, I should fulfill this within the week.
I will be waiting for @vegetabill to confirm about the .js file as well as the Postman test file.
I suggest a folder within projects like this:
projects/node-http-exercise/node-http-exercise.md
projects/node-http-exercise/node-http-exercise-postman-collection.json
And attach the .js file to the PR as suggested originally. However, would that stay available to the users if they look for it? I don't know to what extent you want the solution file to be available.
Thanks!
Almost done. 1 more route remaining, then revise, then I'll make the PR. Probably tomorrow or latest on Friday.
FYI, @alodahl, I have filled another contributing form with my new email address.
Just an update to let you know that I'm on schedule. I need to make some tests and should be able to make the PR later on this afternoon.
@alodahl and @vegetabill, I've just created #1406 .
Let me know if you need any changes, and looking forward for the review.
Have a great day!!!
Most helpful comment
Almost done. 1 more route remaining, then revise, then I'll make the PR. Probably tomorrow or latest on Friday.