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 path = require('path'); | |
module.exports = { | |
stories: [ | |
'../stories/**/*.stories.mdx', | |
'../stories/**/*.stories.@(js|jsx|ts|tsx)', | |
'../components/**/*.stories.@(js|jsx|ts|tsx)', | |
], | |
addons: [ | |
'@storybook/addon-links', |
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
docker network create ecs | |
docker run -d --name elasticsearch --network ecs -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" elasticsearch:7.12.1 | |
docker run -d --name kibana --network ecs -p 5601:5601 kibana:7.12.1 |
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
{ | |
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, | |
Fira Sans, Droid Sans, Helvetica Neue, sans-serif; | |
} |
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
{ | |
"singleQuote": true, | |
"trailingComma": "all", | |
"printWidth": 100 | |
} |
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
module.exports = { | |
presets: [['@babel/preset-env', {targets: {node: 'current'}}], '@babel/preset-typescript'], | |
}; |
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
#!/usr/bin/env node | |
require('xxx') |
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
module.exports = { | |
parser: '@typescript-eslint/parser', | |
parserOptions: { | |
project: 'tsconfig.base.json', | |
sourceType: 'module', | |
}, | |
plugins: ['@typescript-eslint/eslint-plugin', 'import'], | |
extends: ['plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'], | |
root: true, | |
env: { |
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
//+build wireinject | |
package api | |
import ( | |
"github.com/google/wire" | |
"github.com/pot-code/go-producer/api/notification" | |
ut "github.com/pot-code/go-producer/api/notification/transport" | |
"github.com/pot-code/go-producer/pkg/db" | |
"github.com/pot-code/go-producer/pkg/uuid" |
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
CREATE TABLE notification ( | |
"id" VARCHAR(32), | |
"action_type" SMALLINT NOT NULL, | |
"obj_type" VARCHAR(16) NOT NULL, | |
"obj" VARCHAR(32) NOT NULL, | |
"actor" VARCHAR(32) NOT NULL, | |
"create_at" timestamp DEFAULT (now() at time zone 'utc'), | |
"updated_at" timestamp DEFAULT (now() at time zone 'utc'), | |
"status" SMALLINT NOT NULL DEFAULT 1, | |
PRIMARY KEY ("id"), |
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
yarn create next-app | |
npx create-next-app |
NewerOlder