View package.json
{
"name": "@coreui/coreui-free-react-admin-template",
"version": "2.0.5",
"description": "CoreUI React Open Source Bootstrap 4 Admin Template",
"author": "Łukasz Holeczek",
"homepage": "https://coreui.io",
"copyright": "Copyright 2018 creativeLabs Łukasz Holeczek",
"license": "MIT",
"private": true,
"repository": {
View ListeClients.js
import React, { Component } from 'react';
import { Badge, Card, CardBody, CardHeader, Col, Pagination, PaginationItem, PaginationLink, Row, Table } from 'reactstrap';
import Modal from 'react-modal';
import axios from 'axios';
import ListeClientFooter from '../../../containers/DefaultLayout/ListeClientFooter.js';
class ListeClients extends Component {
View Server.js
var express = require("express");
var login = require('./routes/loginroutes');
var clients = require('./routes/clientroutes');
var cors = require('cors');
var bodyParser = require('body-parser');
/*
Module:multer
multer is middleware used to handle multipart form data
*/
View RouterView.js
exports.viewclient = function(req, res) {
//var Code = req.params.Code;
console.log(req.params);
connection.query('SELECT Code, Prenom, Nom, FAX, Telephone, Email, Adresse1, Adresse2 FROM clients WHERE Code = ?',[req.params.Code], function(error, results, fields) {
if (error) throw error;
res.send(JSON.stringify(results));
console.log(results);
});
View ViewClient.js
import React, { Component } from 'react';
import { Badge, Col, Nav, NavItem, NavLink, Row, TabContent, TabPane } from 'reactstrap';
import classnames from 'classnames';
import axios from 'axios';
class ViewClient extends Component {
constructor(props) {
super(props);
this.state = {
View gist:9e6f300f4e0bc26792deff366abd05df
var express = require("express");
var login = require('./routes/loginroutes');
var clients = require('./routes/clientroutes');
var cors = require('cors');
var bodyParser = require('body-parser');
/*
Module:multer
multer is middleware used to handle multipart form data
*/
View clientroutes.js
var mysql = require('mysql');
var bcrypt = require('bcryptjs');
var connection = mysql.createConnection({
host: 'localhost',
user: 'root',
password: 'ichrak',
database: 'brillo',
insecureAuth: true
});
View AjouterClient.js
import React, { Component } from 'react';
import {
Badge,
ButtonDropdown,
Button,
Card,
CardBody,
CardFooter,
View gist:13299abbbce40c2c235d39244e1eed54
default.js:23829 GET http://192.168.7.2:3000/vfs/1/9cupwUkYYGovtXDh?access_token=token 499 (unknown)
request @ default.js:23829
request @ default.js:22462
isServerAlive @ default.js:22488
(anonymous) @ default.js:23401
(anonymous) @ default.js:22487
done @ default.js:23814
xhr.onload @ default.js:23835
load (async)
request @ default.js:23831
View gist:d39a66947d0cfcbbbf7779c19e7d930a
Jul 04 13:13:04 beaglebone systemd[1]: Time has been changed
Jul 04 13:13:04 beaglebone systemd[1]: Started Network Time Synchronization.
Jul 04 13:13:04 beaglebone systemd[1]: Reached target System Time Synchronized.
Jul 04 13:13:05 beaglebone systemd[1]: Started Raise network interfaces.
Jul 04 13:13:05 beaglebone systemd[1]: Started udev Coldplug all Devices.
Jul 04 13:13:05 beaglebone systemd[1]: Reached target System Initialization.
Jul 04 13:13:05 beaglebone systemd[1]: Listening on cloud9.socket.
Jul 04 13:13:05 beaglebone systemd[1]: Listening on bonescript.socket.
Jul 04 13:13:05 beaglebone systemd[1]: Listening on node-red.socket.
Jul 04 13:13:05 beaglebone systemd[1]: Started Daily Cleanup of Temporary Directories.