- Getting Started with Node.js - Full Tutorial - https://www.youtube.com/watch?v=gG3pytAY2MY
- Comprehensive and exhaustive JavaScript & Node.js testing best practices - https://github.com/goldbergyoni/javascript-testing-best-practices
- file
notes.mdhas a lot of examples
- see github.com/vagnerzampieri/cheatsheets/blob/master/javascript.md, there are commands to Node.js and npm.
cd /example-1 && node index.jsornode index2.js
cd /example-2 && node index2.js
cd /example-3 && node --experimental-modules index2.js
cd /example-4 && npm run dev-start
cd /example-5 && npm run dev-start
cd /example-6 && npm run dev-start
cd /example-7 && npm run dev-start
- Build a restful API with Node.js Express & MongoDB | Rest Api Tutorial - https://www.youtube.com/watch?v=vjf774RKrLc
cd /example-8docker-compose upcp .env.example .envput IP address inDB_CONTAINERnpm run dev-startcurl -d '{"title":"This is a title", "description":"This is a description"}' -H "Content-Type: application/json" -X POST http://localhost:3000/posts
- Build a Node.js API Authentication with JWT Tutorial - https://www.youtube.com/watch?v=2jqok-WgelI
cd /example-9docker-compose upcp .env.example .envput IP address inDB_CONTAINERand create a secret token forTOKEN_SECRETnpm run dev-startcurl -d '{"name":"Your name", "email":"your@email.com", "password":"123456"}' -H "Content-Type: application/json" -X POST http://localhost:3000/api/user/registercurl -d '{"email":"your@email.com", "password":"123456"}' -H "Content-Type: application/json" -X POST http://localhost:3000/api/user/logincurl -H "Content-Type: application/json" -H "Auth-Token: <TOKEN>" -X GET http://localhost:3000/api/users
- Jest Crash Course - Unit Testing in JavaScript - https://www.youtube.com/watch?v=7r4xVDI2vho
- Code - https://github.com/bradtraversy/jest_testing_basics
- Mocking Axios in Jest + Testing Async Functions - https://www.youtube.com/watch?v=9Yrd4aZkse8
cd /example-10npm test
- GraphQL Full Course - Novice to Expert - https://www.youtube.com/watch?v=ed8SzALpx1Q
- Code - https://github.com/iamshaunjp/graphql-playlist ... See branchs
cd /example-11/servernpm run dev-startcd /example-11/clientnpm start- graphiql is available for test
- Examples:
{
author(id: 1) {
name
age
books {
name
}
}
}
{
book(id: 1) {
name
genre
authors {
name
age
}
}
}
mutation {
addAuthor(name: "Homer Simpson", age: 42){
name
age
id
}
}
mutation {
addBook(name: "My new book", genre: "bio", authorId: "5dc88adafead565ce4faa9bf") {
name
genre
author {
name
}
}
}
- Redux For Beginners | React Redux Tutorial - https://www.youtube.com/watch?v=CVpUuw9XSjY
cd example-12npm start- install redux chrome extension
cd example-13npm run dev-start
- Code Challenge: Micro-serviços com Node e Kafka - https://www.youtube.com/watch?v=-H8pD7sMcfo
- Code - https://github.com/Rocketseat/youtube-challenge-node-kafka
docker-compose upcd example-14/apinpm run dev-startcd example-14/certificationnpm run dev-start
- React Router 6.0 - https://www.youtube.com/watch?v=G7hHdcW4kQY
cd example-15npm start
- 4 libs que não podem faltar no Node.js com TypeScript (Setup Node.js + TypeScript) - https://www.youtube.com/watch?v=mxiRCcnsKDw
cd example-16npm run startnpm run start:devnpm run buildnode dist/server.jsnpm run test
- TUDO que você deve estudar de JavaScript antes do React - https://www.youtube.com/watch?v=37SwqREHRGI
cd example-17cd vanilla-examplesnpm installnpm run dev
cd example-18npm run start:dev
query Queries {
users {
_id
nickname
}
posts {
_id
content
user_id
}
}
{
"post": {
"content": "This is a content D",
"user_id": "64ab5260b326d4e9b1070bf8"
}
}
mutation Mutation($post: PostInput!) {
createPost(post: $post) {
_id
user_id
content
}
}
- Vite + Vanilla JS - Perfeito para JavaScript, HTML e CSS!
- Javascript Crash Course
- Tem muitos exemplos de como usar o Vanilla JS
cd example-19npm run devnpm run buildnpm run previewpython -m http.server -d dist 3000- Vai rodar o build na porta 3000
- https://www.freecodecamp.org/news/building-chrome-extension/
cd example-20npm run devnpm run buildnpm run preview- add
distfolder inchrome://extensions/->Load unpacked
cd example-21npm run devnpm run buildnpm run previewnpm run test