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 port = 3000; | |
| const requestHandler = (request, response) => { | |
| console.log(request.url); | |
| server | |
| if (request.url == '/') { | |
| response.writeHead(200, { 'Content-type': 'text/htlm' }); | |
| response.write('Bienvenue sur votre server!') | |
| response.end(); |
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 * FROM movie; | |
| SELECT name FROM movie; | |
| SELECT ID, poster FROM movie; | |
| SELECT poster, comment as avis_spectateur FROM movie; |
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
| INSERT INTO movies VALUES (null, "harry Potter","http://www.premiere.fr/sites/default/files/styles/scale_crop_1280x720/public/2018-09/Capture%20d%E2%80%99e%CC%81cran%202018-09-03%20a%CC%80%2011.17.52.png","CE FILM É TR0 B1"); | |
| INSERT INTO movies (name, poster, comment) VALUES ("harry Potter","http://www.premiere.fr/sites/default/files/styles/scale_crop_1280x720/public/2018-09/Capture%20d%E2%80%99e%CC%81cran%202018-09-03%20a%CC%80%2011.17.52.png","CE FILM É TR0 B1"),("harry Potter","http://www.premiere.fr/sites/default/files/styles/scale_crop_1280x720/public/2018-09/Capture%20d%E2%80%99e%CC%81cran%202018-09-03%20a%CC%80%2011.17.52.png","CE FILM É TR0 B1"),("harry Potter","http://www.premiere.fr/sites/default/files/styles/scale_crop_1280x720/public/2018-09/Capture%20d%E2%80%99e%CC%81cran%202018-09-03%20a%CC%80%2011.17.52.png","CE FILM É TR0 B1"); | |
| INSERT INTO movies (name, poster, comment) VALUES ("harry Potter","http://www.premiere.fr/sites/default/files/styles/scale_crop_1280x720/public/2018-09/Capture%20d%E2%8 |
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
| UPDATE movies | |
| SET name="Men in Black" | |
| WHERE id=5; | |
| UPDATE movies | |
| SET name="Deadpool", poster="https://upload.wikimedia.org/wikipedia/en/thumb/2/23/Deadpool_%282016_poster%29.png/220px-Deadpool_%282016_poster%29.png" | |
| WHERE id=8; | |
| UPDATE movies | |
| SET comment="" |
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 app = express(); | |
| const port = 3000; | |
| app.get('/api/movies', (request, response) => { | |
| response.send('Récupération de tous les films'); | |
| }); | |
| app.get('/api/movies/:name', (request, response) => { | |
| const name=request.params.name; | |
| response.json({id: name}) |
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 app = express(); | |
| const port = 3000; | |
| var cors = require('cors') | |
| const connexion = require('./conf'); | |
| app.use(cors()); | |
| app.get('/api/employees', (req, res) => { | |
| //todo recuperation des données (étape 2) |
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 app = express(); | |
| const port = 3000; | |
| var cors = require('cors') | |
| const connexion = require('./conf'); | |
| const bodyParser = require('body-parser'); | |
| // Support JSON-encoded bodies | |
| app.use(bodyParser.json()); | |
| // Support URL-encoded bodies | |
| app.use(bodyParser.urlencoded({ |
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 app = express(); | |
| const port = 3000; | |
| var cors = require('cors') | |
| const connexion = require('./conf'); | |
| const bodyParser = require('body-parser'); | |
| // Support JSON-encoded bodies | |
| app.use(bodyParser.json()); | |
| // Support URL-encoded bodies | |
| app.use(bodyParser.urlencoded({ |
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
| Tout d'abord, nous tenions à remercier infiniment Monsieur Chaussette ainsi que tous ses collaborateurs pour | |
| leur présence à notre demonstration day. Mais ce n'est pas tout, nous tenions également à les remercier | |
| pour la confiance qu'ils ont placé en nous et le temps et l'argent investi à notre égard. | |
| Pour entrer dans le vif du sujet, Monsieur Chaussette, après avoir parcouru notre projet lors de la réunion, n'a pas trouvé | |
| beaucoup de points à changer sur notre projet. L'unique petit point négatif à changer était les couleurs du website dans leur | |
| globalité, ce point a été retravaillé avec un designer renommé, Monsieur Thomas Lambert pour citer. | |
| Abordons maintenant le prochain sprint, grâce à une équipe pro-active et engagée dans le projet, nous pouvons avancer sans crainte | |
| que nous finirons les 25 tâches qui nous ont été attribuées par le product owner avant la fin du temps imparti. Pour ne citer que |
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
| DELETE FROM movie | |
| Where id='5' | |
| DELETE FROM movie | |
| Where id>='10' |