View MyTimer.js
import React, {Component} from 'react';
class MyTimer extends React.Component {
constructor (props) {
super(props)
this.state = {count: 1}
}
componentDidMount () {
this.startTimer(this.timer)
}
View app.js
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import logo from './logo.svg';
import './App.css';
import Author from './test';
import Password from './password';
class App extends Component {
render() {
View app.js
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import logo from './logo.svg';
import './App.css';
import Author from './test';
class App extends Component {
render() {
return (
<div className="App">
View upload.js
var express = require('express');
var router = express.Router();
var multer = require('multer');
var upload = multer({
dest: 'tmp/'
});
var fs = require('fs');
/* GET home page. */
router.get('/', function (req, res, next) {
res.render('index', {
View Delete.js
var express = require('express');
var router = express.Router();
//PUT
router.get('/:nom((\[a-z]+))', function (req, res, next) {
res.render('update-user', {
id: req.params.nom
});
});
View mail.js
var express = require('express');
var router = express.Router();
var cookieParser = require('cookie-parser');
var session = require('express-session');
var app = express();
const nodemailer = require("nodemailer");
var smtpTransport = require('nodemailer-smtp-transport');
var transport = nodemailer.createTransport(smtpTransport({
service: 'gmail',
View node.js
var express = require('express');
var router = express.Router();
var cookieParser = require('cookie-parser');
var session = require('express-session');
var app = express();
/* GET home page. */
router.get('/', function (req, res) {
res.render('index', {
View quete.sql
-- MySQL Script generated by MySQL Workbench
-- lun. 09 avril 2018 12:12:00 CEST
-- 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 Index.js
var express = require('express');
var router = express.Router();
var app = express();
/* GET home page. */
router.get('/', function (req, res) {
res.render('index', {
title: 'Express'
});
View index.js
var express = require('express');
var router = express.Router();
/* GET home page. */
router.get('/', function (req, res, next) {
res.render('index', {
title: 'Express'
});
});