All Projects → FrontendMasters → Intro Node Js

FrontendMasters / Intro Node Js

[Course] Code for Introduction to Node.js

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Intro Node Js

Curso-Python-Gustavo-Guanabara
Mais de 100 exercícios resolvidos do curso de fundamentos de Python 3, ministrado pelo prof. Gustavo Guanabara do Curso em Vídeo.
Stars: ✭ 170 (-46.87%)
Mutual labels:  exercises
learn js regexp
Example based guide to mastering JavaScript regexp
Stars: ✭ 85 (-73.44%)
Mutual labels:  exercises
python-exercises
Exercises for Python
Stars: ✭ 17 (-94.69%)
Mutual labels:  exercises
vapi
vAPI is Vulnerable Adversely Programmed Interface which is Self-Hostable API that mimics OWASP API Top 10 scenarios through Exercises.
Stars: ✭ 674 (+110.63%)
Mutual labels:  exercises
coq-art
Coq code and exercises from the Coq'Art book [maintainers=@ybertot,@Casteran]
Stars: ✭ 57 (-82.19%)
Mutual labels:  exercises
oop-exercises
Exercises for those who want to learn Object Oriented Programming in C++ 🔥
Stars: ✭ 27 (-91.56%)
Mutual labels:  exercises
system-design-notebook
Learn System Design step by step
Stars: ✭ 372 (+16.25%)
Mutual labels:  exercises
Pytorch exercises
Stars: ✭ 304 (-5%)
Mutual labels:  exercises
javascript-practice
Repository for an article "10 Javascript exercises with arrays"
Stars: ✭ 44 (-86.25%)
Mutual labels:  exercises
jsex
Implement Some Handy JavaScript Functions From The Ground Up
Stars: ✭ 13 (-95.94%)
Mutual labels:  exercises
studygroup
Repo containing exercises to learn Elixir
Stars: ✭ 14 (-95.62%)
Mutual labels:  exercises
cloud-sample-spaceflight-java
Build Java applications with the application programming model on SAP Cloud Platform.
Stars: ✭ 49 (-84.69%)
Mutual labels:  exercises
curso-em-video-python3
Desafios resolvidos de Python do Canal Curso em Vídeo.
Stars: ✭ 23 (-92.81%)
Mutual labels:  exercises
Information-Retrieval
Information Retrieval algorithms developed in python. To follow the blog posts, click on the link:
Stars: ✭ 103 (-67.81%)
Mutual labels:  exercises
Simply-Scheme-Exercises
All of the exercises (and their solutions!) from the Berkeley textbook Simply Scheme.
Stars: ✭ 97 (-69.69%)
Mutual labels:  exercises
streams-workshop
A workshop on Node.js Streams
Stars: ✭ 176 (-45%)
Mutual labels:  exercises
Ejercicios-Practicos
Mejora tu lógica de programación y aprende mucho más resolviendo estos ejercicios.
Stars: ✭ 316 (-1.25%)
Mutual labels:  exercises
Little Javascript Book
Early draft for The Little JavaScript Book
Stars: ✭ 305 (-4.69%)
Mutual labels:  exercises
Jdk9 Jigsaw
Examples and exercises based on some of the features of jigsaw in JDK9/Jigsaw (Early Access builds)
Stars: ✭ 275 (-14.06%)
Mutual labels:  exercises
cloud-bulletinboard-ads
This is the bulletinboard-ads sample application code used in the openSAP course: Cloud-Native Development with SAP Business Technology Platform (formerly SAP Cloud Platform).
Stars: ✭ 75 (-76.56%)
Mutual labels:  exercises

Intro to Nodejs

Scott Moss & Frontend Masters

Resources

Course

Thanks for taking the Introduction to Node.js course -- the course has two parts: slides and exercises. The slides describe the exercises in detail. Each exercise have a folder.

Exercises

Installing Node

Install node with node version manager (NVM). NVM was created by the community and not the Nodejs foundation. However, it is the recommended approach. After installing nvm, use nvm to install the lates version of Nodejs, which at this time is 10 and set it to the default version

nvm install node # node is an alias for the latest version
nvm alias default node

If this fails, or you want to install nodejs from nodejs source, then go here

Important: After installing node, please run npm install i or npm install to install the dependencies located in the package.json file (utilized in future exercises).

Modules (node vs browser)

  • location - exercises/modules
  • commands
    • test - npx jest

This exercise will have you convert some JavaScript written for the browser, so that it works with node.

  • [ ] checkout to start branch
  • [ ] check the README on how to run test (will talk later about that command)
  • [ ] fix and convert the 3 js files in the exercises/modules/browser to Nodejs JavaScript and place them in exercises/modules/node
  • [ ] ensure all tests pass by running test command again

CLI (npm)

  • location - exercises/cli
  • commands
    • new - node exercises/cli/index.js new
    • list - node exercises/cli/index.js list

You'll be creating a CLI program that saves and retrieves contacts from and address book. The program is partially there, however, you must install some remote modules, and use the fileSystem to get some things to work.

  • [ ] install all remote modules (hint: use npm)
  • [ ] check the README on how to run your CLI
  • [ ] Fix the CLI so that the "new" command works by saving contacts to contacts.json
  • [ ] Fix the CLI so that the "list" command works by listing all contacts and allowing you to select one, the prints out the selected contact

API (async code)

  • location - exercises/api
  • commands
    • start the server - node exercises/api/server.js

You'll be refacoring and fixing a simple static asset server. The server uses blocking sync code and crashes whenever a request comes in that is asking for an asset that is not found. Neither of those are desirable. You'll also have to teach the server how to server the assets it has in the assets folder.

  • [ ] install all remote modules (hint: use npm)
  • [ ] check the README on how to run your server
  • [ ] refactor the sync file reading code to be async with a callback, promise, or async await
  • [ ] prevent the server from crashing when an assets is not found. Instead, respond with a 404 status code
  • [ ] create some sort of router logic to handle incoming requests for assets

Debugging & Testing

  • location - exercises/testing
  • commands
    • start the server - node exercises/testing/index.js
    • test - npm test or yarn test or npx jest

You have to debug and track down some issues in a small app. Use your logging and inspector to find them. Try and fix them, once you do, write some test to make sure it stays fixed 👌🏾😎💯

  • [ ] checkout to start branch
  • [ ] check the README on how to execute this program and run test
  • [ ] there are 3 bugs, find them and fix them
  • [ ] write some unit test with Jest to make sure those bugs stay fixed. Refactor the code if you have to

Sharing and Deploying

Deploy one of the exercises to heroku (server) or npm (cli)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].