View myprecious.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" >
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Sauron is very good bro.</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
View Author.js
import React, { Component } from 'react';
class Author extends Component {
click(){
alert('Parfait');
}
render(){
View app.js
var createError = require('http-errors');
var express = require('express');
var path = require('path');
var cookieParser = require('cookie-parser');
var logger = require('morgan');
var usersRouter = require('./routes/users');
var indexRouter = require('./routes/index');
var usersRouter = require('./routes/users');
var app = express();
View app.js
var createError = require('http-errors');
var express = require('express');
var path = require('path');
var cookieParser = require('cookie-parser');
var logger = require('morgan');
var usersRouter = require('./routes/users');
var indexRouter = require('./routes/index');
var usersRouter = require('./routes/users');
var app = express();
View delete-user.pug
extends layout
block content
form(method='POST', action='/users/' + id + '?_method=DELETE')
h1= title
p Supprimer l'utilisateur.
button(type='submit') Supprimez
View gist:71bd21d948ddf449414e94398d4f93eb
var express = require('express');
var router = express.Router();
var nodemailer = require("nodemailer");
// Création de la méthode de transport de l'email à intégrer dans index.js dans les routes.
var smtpTransport = nodemailer.createTransport({
service: "Gmail",
port: 587,
View inthemiddleware.js
var express = require('express');
var router = express.Router();
/* Récupération du paramètre d'URL + du level.
http://localhost:3000/superMiddleware
- contient deux fonctions,
- middleware comporte le next,
- middleware affiche hello middleware en console.
*/
View reservationbddpart2.sql
-- MySQL Script generated by MySQL Workbench
-- Mon Apr 9 12:46:25 2018
-- Model: New Model Version: 1.0
-- MySQL Workbench Forward Engineering
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES';
-- -----------------------------------------------------
View sweetfight.css
@import url('https://fonts.googleapis.com/css?family=Press+Start+2P');
body {
font-size: 62.5%; /* base de "10px" au lieu de "16px" */
font-family: 'Press Start 2P', cursive;
}
h1{
View acccueil-sweetfight.html
<!DOCTYPE html>
<html>
<head>
<title><%= Sweet Fight %></title>
<link rel='stylesheet' href='/stylesheets/style.css' />
</head>
<body>
<section class="choixperso">
<div class="backgroundcaroussel">