This file contains 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
<!-- Afin de valider ton code HTML, fais un copier-coller de ce dernier et rends-toi sur https://validator.w3.org/#validate_by_input. | |
Click sur l'onglet "Validate by Direct Input" et colle ton code HTML, click ensuite sur le bouton "Check", et tu verras ensuite (si tu en as) les erreurs HTML s'afficher plus bas. | |
Tu peux jeter un oeil par ici pour en savoir un peu plus: https://www.243tech.com/valider-vos-codes-html-et-css-sur-validator-w3-org/ --> | |
<!DOCTYPE html> | |
<html lang="fr"> | |
<head> | |
<meta charset="UTF-8"> | |
<link href="https://fonts.googleapis.com/css?family=Cinzel+Decorative%7CGreat+Vibes%7CGupter%7CReenie+Beanie&display=swap" rel="stylesheet"> | |
<link href="https://fonts.googleapis.com/css?family=Great+Vibes%7CGupter%7CReenie+Beanie&display=swap" rel="stylesheet"> |
This file contains 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
// route/Product/addProduct.js | |
//Here I modified some things, for example async await at my home that did not pass, | |
//I had to add an export module (app), and on this file I have like error "TypeError: Cannot read property 'create' of undefined" | |
const Order = require('../../models/order'); | |
const Product = require('../../models/product').Product; | |
const ProductOrder = require('../../models/productOrder').ProductOrder; | |
module.exports = app => { |
This file contains 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
import React, { useState } from 'react'; | |
import { Formik } from 'formik'; | |
import axios from 'axios'; | |
import { Modal, ModalBody } from 'reactstrap'; | |
import Header from '../lib/Header/Header'; | |
import validate from './ValidateSchema/validate-spected'; | |
import getValidationSchema from './ValidateSchema/getValidationSchema-spected'; | |
import './RegisterPage.scss' |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>Counter Redux</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- Redux CDN --> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/redux/4.0.1/redux.min.js"></script> |
This file contains 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
Retourne le nom des équipes et le nombre de joueurs par équipe, le tout classé par nombre de joueurs par équipe, de la plus nombreuse à la moins nombreuse. | |
MariaDB [Wild_db_quest]> select name, count(*) as nb_student | |
-> from player | |
-> join team on team.id=player.team_id | |
-> group by name | |
-> order by nb_student desc; | |
+------------+------------+ | |
| name | nb_student | | |
+------------+------------+ |
This file contains 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 connection = require('./conf'); | |
const bodyParser = require('body-parser'); | |
const app = express() | |
const port = 3000 | |
app.use(bodyParser.json()); | |
// Support URL-encoded bodies | |
app.use(bodyParser.urlencoded({ | |
extended: true |
This file contains 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 connection = require('./conf'); | |
const bodyParser = require('body-parser'); | |
const app = express() | |
const port = 3000 | |
app.use(bodyParser.json()); | |
// Support URL-encoded bodies | |
app.use(bodyParser.urlencoded({ | |
extended: true |
This file contains 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 connection = require('./conf'); | |
const bodyParser = require('body-parser'); | |
const app = express() | |
const port = 3000 | |
app.get('/api/movie', (req, res) => { | |
connection.query('SELECT * from movie', (err, results) => { | |
if (err) { |
This file contains 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 connection = require('./conf'); | |
const app = express() | |
const port = 3000 | |
app.get('/api/movie', (req, res) => { | |
connection.query('SELECT * from movie', (err, results) => { | |
if (err) { | |
res.status(500).send('Erreur lors de la récupération des employés'); | |
} else { |
This file contains 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('/', (req, res) => { | |
res.send('Bienvenue sur Express') | |
}) | |
app.get('/api/movies', (req, res) => { | |
res.send('Récupération de tous les films') |
NewerOlder