This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require("express"); | |
const port = 3000; | |
const app = express(); | |
// route superMiddleware + function middleware | |
app.get( | |
"/superMiddleware", | |
(req, res, next) => { | |
res.send("hello world"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT firstname, lastname, name, role | |
FROM wizard | |
JOIN player ON wizard_id=wizard.id | |
JOIN team ON team_id=team.id | |
ORDER BY name, role, lastname, firstname; | |
SELECT firstname, lastname, role | |
FROM wizard | |
JOIN player ON wizard_id=wizard.id | |
AND role='seeker' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require("express"); | |
const movies = require("./movies"); | |
const connection = require("./config"); | |
const port = 3000; | |
const app = express(); | |
// connexion à la Database | |
connection.connect(function (err) { | |
if (err) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require("express"); | |
const movies = require("./movies"); | |
const connection = require("./config"); | |
const port = 3000; | |
const app = express(); | |
// connexion à la Database | |
connection.connect(function (err) { | |
if (err) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require("express"); | |
const movies = require("./movies"); | |
const connection = require("./config"); | |
const port = 3000; | |
const app = express(); | |
// connexion à la Database | |
connection.connect(function (err) { | |
if (err) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require("express"); | |
const movies = require("./movies"); | |
const port = 3000; | |
const app = express(); | |
const connection = require("./config"); | |
// connexion à la Database | |
connection.connect(function (err) { | |
if (err) { | |
console.error("error connecting: " + err.stack); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const http = require("http"); | |
const url = require("url"); | |
const port = 8000; | |
const requestHandler = (request, response) => { | |
const urlValue = request.url; | |
const parseUrl = url.parse(urlValue, true); | |
const nameValue = parseUrl.query; | |
if (request.url === "/") { |