Files
42_INT_14_transcendence/notes_hugo.md
simplonco 0060f5daf7 fixed env script
+ fixed domain en port variable in svelte
2022-12-31 19:22:12 +01:00

1019 B

FORTYTWO_CLIENT_ID=u-s4t2ud-49dc7b539bcfe1acb48b928b2b281671c99fc5bfab1faca57a536ab7e0075500
FORTYTWO_CLIENT_SECRET=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

https://stackoverflow.com/questions/34051747/get-environment-variable-from-docker-container

node.js & postgresql

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);
});