- 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.md
has 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.js
ornode 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-8
docker-compose up
cp .env.example .env
put IP address inDB_CONTAINER
npm run dev-start
curl -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-9
docker-compose up
cp .env.example .env
put IP address inDB_CONTAINER
and create a secret token forTOKEN_SECRET
npm run dev-start
curl -d '{"name":"Your name", "email":"[email protected]", "password":"123456"}' -H "Content-Type: application/json" -X POST http://localhost:3000/api/user/register
curl -d '{"email":"[email protected]", "password":"123456"}' -H "Content-Type: application/json" -X POST http://localhost:3000/api/user/login
curl -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-10
npm 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/server
npm run dev-start
cd /example-11/client
npm 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-12
npm start
- install redux chrome extension
cd example-13
npm 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 up
cd example-14/api
npm run dev-start
cd example-14/certification
npm run dev-start
- React Router 6.0 - https://www.youtube.com/watch?v=G7hHdcW4kQY
cd example-15
npm 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-16
npm run start
npm run start:dev
npm run build
node dist/server.js
npm run test
- TUDO que você deve estudar de JavaScript antes do React - https://www.youtube.com/watch?v=37SwqREHRGI
cd example-17
cd vanilla-examples
npm install
npm run dev
cd example-18
npm 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-19
npm run dev
npm run build
npm run preview
python -m http.server -d dist 3000
- Vai rodar o build na porta 3000
- https://www.freecodecamp.org/news/building-chrome-extension/
cd example-20
npm run dev
npm run build
npm run preview
- add
dist
folder inchrome://extensions/
->Load unpacked
cd example-21
npm run dev
npm run build
npm run preview
npm run test