This file contains hidden or 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 AdminBro = require('admin-bro') | |
const AdminBroMongoose = require('@admin-bro/mongoose') | |
AdminBro.registerAdapter(AdminBroMongoose) |
This file contains hidden or 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 AdminBro = require('admin-bro') | |
const AdminBroExpress = require('@admin-bro/express') | |
const express = require('express') | |
const app = express() | |
const adminBro = new AdminBro({ | |
databases: [], | |
rootPath: '/admin', | |
}) |
This file contains hidden or 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
app.use(adminBro.options.rootPath, router) | |
app.listen(8080, () => console.log('AdminBro is under localhost:8080/admin')) |
This file contains hidden or 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 AdminBro = require('admin-bro') | |
const AdminBroExpress = require('@admin-bro/express') | |
const express = require('express') | |
const app = express() | |
const adminBro = new AdminBro({ | |
databases: [], | |
rootPath: '/admin', | |
}) |
This file contains hidden or 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
{ | |
// comments | |
unquoted: 'and you can quote me on that', | |
singleQuotes: 'I can use "double quotes" here', | |
lineBreaks: "Look, Mom! \ | |
No \\n's!", | |
hexadecimal: 0xdecaf, | |
leadingDecimalPoint: .8675309, andTrailing: 8675309., | |
positiveSign: +1, | |
trailingComma: 'in objects', andIn: ['arrays',], |
This file contains hidden or 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 debug = require('debug'); | |
const log = debug('http:server'); | |
const http = require('http'); | |
const name = 'My App name'; | |
log('booting %o', name); | |
http.createServer((req, res) => { | |
log(req.method + ' ' + req.url); |
This file contains hidden or 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
// package.json | |
{ | |
"husky": { | |
"hooks": { | |
"pre-commit": "npm lint", | |
"pre-push": "npm test" | |
} | |
} | |
} |
This file contains hidden or 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
return ( | |
<> | |
<h1>data from google sheets</h1> | |
<ul> | |
{data.map((item, i) => ( | |
<Fragment key={i}> | |
<li>URL -- {item.URL}</li> | |
<li>Email - {item.email}</li> | |
<li>Token - {item.token}</li> | |
<br /> |
This file contains hidden or 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, { useEffect, useState, Fragment } from "react"; | |
import Tabletop from "tabletop"; | |
export default function App() { | |
const [data, setData] = useState([]); | |
useEffect(() => { | |
Tabletop.init({ | |
key: "1TK1Qj6kfA90KbmFAdnIOtKUttpJUhZoZuOPy925c6nQ", | |
simpleSheet: true |
This file contains hidden or 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, { useEffect, useState, Fragment } from "react"; | |
import Tabletop from "tabletop"; | |
import "./styles.css"; | |
export default function App() { | |
const [data, setData] = useState([]); | |
useEffect(() => { | |
Tabletop.init({ | |
key: "1TK1Qj6kfA90KbmFAdnIOtKUttpJUhZoZuOPy925c6nQ", |