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
-- 02 JOIN | |
-- test.db | |
-- join example tables, left and right | |
CREATE TABLE left ( id INTEGER, description TEXT ); | |
CREATE TABLE right ( id INTEGER, description TEXT ); | |
INSERT INTO left VALUES ( 1, 'left 01' ); | |
INSERT INTO left VALUES ( 2, 'left 02' ); | |
INSERT INTO left VALUES ( 3, 'left 03' ); |
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
npm i react react-dom | |
npm i -D @babel/core @babel/preset-env @babel/preset-react webpack webpac-cli webpack-dev-server babel-loader css-loader style-loader html-webpack-plugin |
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(); | |
// logger | |
const morgan = require("morgan"); | |
const productRoutes = require("./api/routes/products"); | |
const orderRoutes = require("./api/routes/orders"); | |
// using the morgan the resul will beo nthe terminal | |
app.use(morgan("dev")); |
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, { Component } from "react"; | |
import axios from "axios"; | |
import "./App.css"; | |
import { recipes } from "./tempList"; | |
import { AUTH_KEY } from "./config"; | |
import RecipeList from "./components/RecipeList"; | |
import RecipeDetails from "./components/RecipeDetails"; | |
class App extends Component { | |
state = { |
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
# From Kal Skills Teaching procces on cloning a existing repository or want to colaborate with it | |
git clone - clone a repository | |
cd - change directory | |
ls - list directory | |
git status - mostly for verification | |
git add filename | |
git commit -m "waht ever message here" | |
git push | |
upstream |
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
// Jquery Version | |
$(function () { | |
$.getJSON('api', updateFeedback); | |
$('.feedback-form').submit(function (e) { | |
e.preventDefault(); | |
$.post('api', { | |
name: $('#feedback-form-name').val(), | |
title: $('#feedback-form-title').val(), | |
message: $('#feedback-form-message').val() |
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
/** | |
* ! ####### fetch data from http://localhost:3000/api ####### | |
* ? | |
* TODO: | |
* @param | |
*/ | |
async function updateFeedbackdata() { | |
const apiResponse = await fetch('api'); | |
const data = await apiResponse.json(); | |
return { data } |
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
{ | |
"todolist": [ | |
{ | |
"id": 1, | |
"title": "first todo", | |
"description": "pick up milk", | |
"complete": true, | |
"canceled": true, | |
"date": 1389878466730 | |
}, |
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
{ | |
"todoitem": [ | |
{ | |
"id": 1, | |
"item": "first todo", | |
"complete": true | |
}, | |
{ | |
"id": 2, | |
"item": "second todo", |
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 lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge" /> | |
<title>Document</title> | |
<link rel="stylesheet" href="css/style.css" /> | |
</head> | |
<body> |
OlderNewer