Skip to content

Conversation

@RUNQILIU-123
Copy link

A tutorial review of the tutorial has been done. Modified part of the text description of the sentence to make the content more coherent and clear. The code in this tutorial has been run to ensure that it works and outputs the results.In the HTML file, I added some elements myself to make the page more perfect and easier to operate.

Checks done:

Tested in latest Chrome
Tested in latest Firefox
npm run build
npm run preview

Code Checks:

Checked C#
Checked C++
Checked Python

Code output results:

Prat one
Create a new project folder and enter that folder. We need to set up a resources folder to store the files we want to 'provide services' for. We need to run 'skm resources' in the terminal.
C++
image

PY
image

C#
image

result
image

Part two
Based on the last time, this uses the next_web_request function to get the next server request, and depending on whether it is obtained, selectively redirects the page to the login page or the homepage (while also using the skm sources command to create a sources file, placing index.html and login.html in the file).
C++
image

PY
image

C#
image

Part three
Based on the documents in the second part, we use a while loop to obtain multiple requests and navigate them to different pages. The function ISGetRequestFor is used to determine if the corresponding request has been received. During this process, a problem was found: for /quit, the server exits directly without giving any prompt, which may confuse users in real use. In practice, we could add a prompt.
C++
image

PY
image

C#
image

C#
image

Result
image
image
image
image

Copy link

@Oliver-Quail Oliver-Quail left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I approve this PR pending confirmation of testing of OOP code

- [x] The tutorial is free of spelling and grammatical errors.
- [x] The tutorial is easy to follow.
- [x] The tutorial has:
- [x] C# using top level statements

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just checking. It seems from your write up you tested C# code (Object-Oriented Programming) didn't you?

If so please add this to the check list as it was a task requirement to review this code as well

@@ -0,0 +1 @@
contributors:Runqi Liu, Haoyu Liu,Wei Zhang

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this file is necessary

Copy link

@Oliver-Quail Oliver-Quail left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requested changes have been made.
I approve this PR

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.

4 participants