small node js tests

This commit is contained in:
hugogogo
2022-10-07 16:05:14 +02:00
parent f7af02450f
commit 0197339fb0
3 changed files with 54 additions and 1 deletions

View File

@@ -1,4 +1,23 @@
## node.js & postgresql
- https://www.youtube.com/watch?v=ufdHsFClAk0
- [youtube tuto js + postgresql](https://www.youtube.com/watch?v=ufdHsFClAk0)
- [node.js wikipedia](https://en.wikipedia.org/wiki/Node.js)
- node.js is originally a replacement to the web server apache
- [youtube tuto nodejs fr](https://www.youtube.com/watch?v=0PA69L88HeI)
code synchrone / asynchrone :
```
// bocking code
var content = fs.readFileSync('MyFile.txt');
console.log('my file :', content);
// non-bocking code
fs.readFile('MyFile.txt', (err, content) => {
if (err) {
throw err;
}
console.log('my file :', content);
});
```
- [doc technos generic](https://devdocs.io/)