ExpressWorks

Welcome to the first video where I will show you how to set up the ExpressWorks workshop itself. To begin with I have this empty folder. As you can see it's empty. And what I want to do is create a solution in this folder but we will create solution in the next video so first let's install the tool itself. The tool will provide us with problems and then verify our solutions. So, what I'm doing is I'm using npm. You should have npm installed already for this exercise, and then the command is install. I'm using -g to install this expressworks tool globally. I hit Enter. The latest version is 3.2.0 which npm will get by default. If you're using a higher version, use it at your own risk. I would not recommend you to use a higher version if you're following this video. You can see the location, so I can see I'm doing the list again, and the folder's still empty. So that tells you that it's a global installation, it didn't install locally, and you have this path here. You also see the version, 3.2.0. OK, that's great.

Before we launch the GUI menu, I want to show you this list of commands So I'll scroll up, and it shows you a list of all the commands that this workshop, this command line tool has So for example list, select, current, print, next They're all the commands you can use with this workshop. The two most important ones, run and verify. run will run your program, by providing the input necessary, so you don't need to create the input yourself, unless you really want to understand how it all works, but that's a lot of time. Sometimes there's a file, there's a path, you need to create that folder. So just use run. That's my recommendation.

And then, once you run the program, you need to verify it. So verification, different, because it would not give you all the errors. But it'll also provide your program with the proper input. And then, if it matches, if the output matches the output of the solution, your program will complete this particular task, this particular adventure, and you can proceed to the next adventure. So you would go to the menu again, and work on that next solution. There's also reset, which will allow you to reset all the completed, so you can retake this workshop. Next, current, print, also available for you. Here's the link to the official API documentation if you're confused about what routes or static means, you want to look at some more examples besides some of the examples that I provided in the workshop itself, you can do that by following this link. And Express.js Guide, it's a book written by me about Express JS. There is a newer version available, it's called Pro Express by Apress publisher.

And if you have any issues, suggestions, or feedback or you want to submit a pull request just go to this GitHub repository. And you can also check out another amazing workshops at nodeschool.io So, to launch the first ... adventure, you would type "expressworks". It doesn't matter what folder but I'm using this newly created folder, empty folder, where I'll be writing the solutions. And then I start from the top and go to the bottom once I verify the solutions. The very first one is Hello World. Don't skip the adventures because they build one on top of another. And if you speak French or Korean feel free to switch to that language as well. Thanks to the contributors they translated the interface and exercises.

Okay, so I need to select the exercise. You can also select HELP from this menu, it's exactly the same as executed in the command line. So let's go back to the menu, and select the first exercise. You can see we have some text, and then we have some commands as well. So that's pretty much what you need to do. You have this problem, you have some hints. Don't look at the hints right away. And then, once you're ready, what you would do ... you would run ... program-1 because it's the first step and then you would verify it.