learnnodejsff
v1.0.0
Published
Learn how to node js
Downloads
4
Readme
learnnodejs
aca hay una buena referencia de como configurar nodejs y typescript con npm https://khalilstemmler.com/blogs/typescript/node-starter-project/
En la docu del visualstudio code encontre varias cosas para entender como debuggear https://code.visualstudio.com/docs/typescript/typescript-compiling
Para correr, primero verificar tener node instalado (usar nvm para obtener la ultima lts)
nvm install --lts nvm use --lts
Despues instalar las dependencias
npm install
Para correr con npm se puede:
En ambiente local npm run start:dev
En "prod" npm run start
Tambien se puede debuggear desde el Visual Studio Code usando el launch.json
Breve explicacion de los archivos de configuracion
- package.json tiene la config de npm con las dependencias dependencies: estan las dependencias de types de node devDependencies: nodemon: tira alguna magia para poder hacer el npm start:dev y que se quede watcheando los cambios y al mismo tiempo compilando ts-node: ejecuta el typescript on the fly en modo dev typescript: este me lo pidio instalar asi para ts-node, lo tenia instalado global, pero no lo levantaba
nodemon.json configuracion de como ejecutar el nodemon que esta watcheando los cambios basicamente ejecuta al app.ts con ts-node
tsconfig.json configuracion de typescript notar q esta estricta
Para instalar express
https://blog.logrocket.com/typescript-with-node-js-and-express/
delete line = ctrl+shift+k format code = ctrl+shift+i
linkssss
https://afteracademy.com/blog/design-node-js-backend-architecture-like-a-pro https://dev.to/raynnerdm/developing-in-node-js-using-typescript-18kg https://itnext.io/how-to-use-node-js-with-typescript-98e16b35518a https://blog.tuleap.org/how-we-replaced-rabbitmq-redis/ https://redis.io/commands/rpoplpush#pattern-reliable-queue https://bronto.com/blog/reliable-queueing-in-redis-part-1https://redis.io/topics/streams-intro https://github.com/bee-queue/bee-queue https://dev.to/sarbikbetal/simple-node-js-task-queue-with-bee-queue-and-redis-105b https://redislabs.com/blog/bee-queue-redis-based-distributed-queue/ https://github.com/OptimalBits/bull