Skip to content

Instantly share code, notes, and snippets.

View yvesbou's full-sized avatar

Yves Boutellier yvesbou

View GitHub Profile
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
}
}
module.exports = {
content: ["./src/**/*.{html,js, jsx}"],
theme: {
extend: {},
},
plugins: [],
}
@tailwind base;
@tailwind components;
@tailwind utilities;
import { useState } from 'react'
const App = () => {
return (
<div className="App">
<h1 className="text-3xl font-bold underline">
Hello world!
</h1>
</div>
{
"name": "server",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "nodemon index.js"
},
"keywords": [],
"author": "",
\_ Server
\_ node_modules
\_ src
\_ index.js
\_ types
\_ package.json
\_ package-lock.json
// graphQL wrapper
const {gql} = require("apollo-server");
// this graphlQL wrapper basically lets us create a graphQL schema which will be interpreted from a javascript string
module.exports = gql`
type ERC20Coin{
id: ID!
name: String!
}
const ERC20Coin = require('./coin');
module.exports = [
ERC20Coin
]
const mongoose = require("mongoose");
const { Schema } = mongoose;
const erc20CoinSchema = new Schema({
name: {
type: String,
trim: true
}
});
const {ERC20Coin} = require('./coin');
module.exports = [
ERC20Coin
]