1- Básico
2- MongoDB
3- MySQL

*:
-> Servidor Node.js 
(import, express, cors, use, get/post/put/delete, listen)
[Thunder Client]
	-> Aceptar datos del cliente (req)
		-> req.params.a (url /:a)
		-> req.query.b (?b=7)
		-> req.body.c (cuerpo petición: json { c: "hola"})
	[Desestructuración:
		{c, d, e} = req.body
	]
	-> Lógica de la operación en servidor (L)
	-> Emitir una respuesta (res)
-> Realizar peticiones desde cliente (fetch)
	-> Pasar datos al servidor: 
		-> /miurl/midato (url)
		-> /miurl?dato=midato (url)
		-> /miurl, 
			- y en body { dato: midato } (conf)
			- y en headers: {"Content-Type": "application/json"}
	-> Recibir resultado:
		-> await 1) fetch, 2) res.json()/res.text()
		o bien
		-> .then(resp => resp.json()/.text())
		   .then(datos/texto => Procesar el texto en cliente)
	-> Procesar resultado:
		- Interacción con DOM

2, 3:
-> async delante de (req, res)

2:
-> npm install mongodb
-> import {MongoClient, ObjectId} from "mongodb"
-> const client = new MongoClient("mongodb://localhost:27017")
   await client.connect()
   const db = client.db("mibd")
   (L) const resultado = 
			await db.collection("micol").find(...).toArray()
   
3:
-> npm install mysql2
-> import mysql from "mysql2/promise"  
-> const db = mysql.createPool({
	  host: "localhost",
	  user: "root",
	  password: "",
	  database: "mibd"
   }
   
   const [ resultado ] = db.query("select... ? ... ? ", [a, b])
   res.json(resultado)

Configuración mínima proyecto:
* npm init -y
* npm install ...
* package.json -> type: module








