Node.js Networking Module #53 Flashcards
1
Q
Pop Quiz! How do you execute a file? Let’s say you have a bit of Node.js you want to run…How would you do that?
A
From the terminal, be sure you’re in the proper dirctory and then type the command:
node filename.js or in this case node server.js
2
Q
How do you stop the server from running?
A
Stop it pressing the ctrl-C key combination
3
Q
If you need to use Axios for your project, where should it be installed?
A
Your local project directory.
4
Q
How can you test sending a POST request?
A
By using the Post Test Server,
https://ptsv2.com/ Bookmark it for later.
5
Q
How can you clear up a messy terminal on Linux?
A
Ctrl-L