Files
42_INT_14_transcendence/notes_hugo.md
2022-10-09 15:04:09 +02:00

26 lines
727 B
Markdown

## node.js & postgresql
- [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/)
- [url.parse deprecated](https://stackoverflow.com/questions/17184791/node-js-url-parse-and-pathname-property)