616 B
616 B
node.js & postgresql
- youtube tuto js + postgresql
- node.js wikipedia
- node.js is originally a replacement to the web server apache
- youtube tuto nodejs fr
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);
});