Skip to content

Instantly share code, notes, and snippets.

Avatar
🏃‍♂️
runnin through the six

Hassan Djirdeh djirdehh

🏃‍♂️
runnin through the six
View GitHub Profile
@djirdehh
djirdehh / users.ts
Created May 3, 2020
Seed data to populate users for the TinyHouse application as part of the Postgres + TypeORM lesson.
View users.ts
const users: User[] = [
{
id: "5d378db94e84753160e08b55",
token: "token_************",
name: "James J.",
avatar:
"https://res.cloudinary.com/tiny-house/image/upload/w_1000,ar_1:1,c_fill,g_auto/v1560648533/mock/users/user-profile-1_mawp12.jpg",
contact: "james@tinyhouse.com",
walletId: "acct_************",
income: 723796,
@djirdehh
djirdehh / listings.ts
Created May 3, 2020
Seed data to populate listings for the TinyHouse application as part of the Postgres + TypeORM lesson.
View listings.ts
const listings: Listing[] = [
{
id: "5d378db94e84753160e08b30",
title: "Clean and fully furnished apartment. 5 min away from CN Tower",
description:
"2 bed, 2 bathroom cozy apartment in the heart of downtown Toronto and only 5 min away from the CN Tower, Scotiabank Arena, and Rogers Center.",
image:
"https://res.cloudinary.com/tiny-house/image/upload/v1560641352/mock/Toronto/toronto-listing-1_exv0tf.jpg",
host: "5d378db94e84753160e08b57",
type: ListingType.Apartment,
View eslint-test-package.json
{
"name": "tinyhouse-v1-server",
"version": "0.1.0",
"dependencies": {
"express": "^4.17.1"
},
"devDependencies": {
"@types/express": "^4.17.0",
"@types/node": "^13.7.1",
"@typescript-eslint/eslint-plugin": "^2.19.2",
@djirdehh
djirdehh / .env
Created Jan 1, 2020
Sample .env file (without values) for client project after lesson 12.1 of Part II of the TinyHouse Fullstack React Masterclass.
View .env
PORT=
PUBLIC_URL=
DB_USER=
DB_USER_PASSWORD=
DB_CLUSTER=
G_CLIENT_ID=
G_CLIENT_SECRET=
SECRET=
NODE_ENV=
G_GEOCODE_KEY=
@djirdehh
djirdehh / connectBranding.txt
Last active Dec 29, 2019
Branding details used for Stripe Connect in lesson 10.2 of Part II of the TinyHouse Fullstack React Masterclass.
View connectBranding.txt
Business name: TinyHouse
Brand color: #1890ff
Logo/Icon: https://s3-us-west-2.amazonaws.com/s.cdpn.io/1211695/thlogowhite.jpg
@djirdehh
djirdehh / .env
Created Dec 29, 2019
Sample .env file (without values) for client project after lesson 10.2 of Part II of the TinyHouse Fullstack React Masterclass.
View .env
REACT_APP_S_CLIENT_ID=
REACT_APP_S_PUBLISHABLE_KEY=
@djirdehh
djirdehh / .env
Last active Dec 29, 2019
Sample .env file (without values) for server project after lesson 10.2 of Part II of the TinyHouse Fullstack React Masterclass.
View .env
PORT=
PUBLIC_URL=
DB_USER=
DB_USER_PASSWORD=
DB_CLUSTER=
G_CLIENT_ID=
G_CLIENT_SECRET=
SECRET=
NODE_ENV=
G_GEOCODE_KEY=
@djirdehh
djirdehh / .env
Created Dec 29, 2019
Sample .env file (without values) for after lesson 10.2 of Part II of the TinyHouse Fullstack React Masterclass.
View .env
PORT=
PUBLIC_URL=
DB_USER=
DB_USER_PASSWORD=
DB_CLUSTER=
G_CLIENT_ID=
G_CLIENT_SECRET=
SECRET=
NODE_ENV=
G_GEOCODE_KEY=
@djirdehh
djirdehh / .env
Created Dec 27, 2019
Sample .env file (without values) for after lesson 9.1 of Part II of the TinyHouse Fullstack React Masterclass.
View .env
PORT=
PUBLIC_URL=
DB_USER=
DB_USER_PASSWORD=
DB_CLUSTER=
G_CLIENT_ID=
G_CLIENT_SECRET=
SECRET=
NODE_ENV=
G_GEOCODE_KEY=
@djirdehh
djirdehh / listingBookings.ts
Last active Dec 25, 2019
Mock listingBookings object as used in lesson 7.4 of Part II of the TinyHouse Fullstack React Masterclass.
View listingBookings.ts
const listingBookings = {
total: 4,
result: [
{
id: "5daa530eefc64b001767247c",
tenant: {
id: "117422637055829818290",
name: "User X",
avatar:
"https://lh3.googleusercontent.com/a-/AAuE7mBL9NpzsFA6mGSC8xIIJfeK4oTeOJpYvL-gAyaB=s100",
You can’t perform that action at this time.