Keybase proof
I hereby claim:
- I am djirdehh on github.
- I am djirdehh (https://keybase.io/djirdehh) on keybase.
- I have a public key whose fingerprint is DDDB C924 ED57 A0F4 4138 28F4 8507 B686 DC14 B0A9
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
const http = require("http"); | |
const express = require('express'); | |
const app = express(); | |
app.use('/public', express.static('./public')); | |
app.get('/', (req, res) => { | |
res.sendFile(__dirname + '/index.html'); | |
}) |
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import App from './components/App'; | |
ReactDOM.render( | |
<div> | |
<App /> | |
</div>, | |
document.getElementById('root') | |
); |
<template> | |
<div> | |
<h2>The numbers are {{ numbers }}!</h2> | |
</div> | |
</template> | |
<script> | |
export default { | |
name: 'NumberComponent', | |
data () { |
<!-- Parent Component --> | |
<template> | |
<div> | |
<ChildComponent :numbers="numbers" /> | |
</div> | |
</template> | |
<script> | |
import ChildComponent from './child-component.js'; | |
export default { | |
name: 'ParentComponent', |
<!-- Parent Component --> | |
<template> | |
<div> | |
<ChildComponent | |
:numbers="numbers" | |
@number-added="numbers.push($event)" | |
/> | |
</div> | |
</template> |
import Vue from 'vue'; | |
export const EventBus = new Vue(); |
import { shallowMount } from "@vue/test-utils"; | |
import App from "@/App.vue"; | |
describe("App", () => { | |
let wrapper; | |
beforeEach(() => { | |
wrapper = shallowMount(App); | |
}); |
export const listings = [ | |
{ | |
id: "001", | |
title: | |
"Clean and fully furnished apartment. 5 min away from CN Tower", | |
image: | |
"https://res.cloudinary.com/tiny-house/image/upload/v1560641352/mock/Toronto/toronto-listing-1_exv0tf.jpg", | |
address: "3210 Scotchmere Dr W, Toronto, ON, CA", | |
price: 10000, | |
numOfGuests: 2, |
PORT= | |
DB_USER= | |
DB_USER_PASSWORD= | |
DB_CLUSTER= |