Skip to content

Instantly share code, notes, and snippets.

View vdelacou's full-sized avatar

Vincent DELACOURT vdelacou

View GitHub Profile
@vdelacou
vdelacou / .vscode_settings.json
Last active May 5, 2020 06:31
How to add AWS Amplify function typescript
{
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true
},
"typescript.tsdk": "node_modules\\typescript\\lib",
"files.autoSave": "afterDelay",
"search.exclude": {
"**/node_modules": true,
"**/.vscode": true,
@vdelacou
vdelacou / .eslintrc.json
Last active May 15, 2020 05:58
Create Node API in second with Zeit now and typescript
{
"env": {
"es6": true,
"node": true
},
"extends": ["airbnb-typescript", "plugin:prettier/recommended"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
@vdelacou
vdelacou / .editorconfig
Last active January 31, 2024 18:55
Create React app Typescript with eslint
# Editor configuration, see http://editorconfig.org
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
@vdelacou
vdelacou / amplify.yml
Last active January 31, 2020 07:07
Amplify Console for backend end only with amplify cli
version: 0.1
backend:
phases:
build:
commands:
- amplifyPush --simple
frontend:
phases:
preBuild:
commands:
@vdelacou
vdelacou / index.html
Last active January 30, 2020 09:02
We are all Jedi Page
<!doctype html>
<html>
<head>
<title>We are all Jedi!</title>
</head>
<body>
<h1>We are all Jedi!</h1>
</body>
@vdelacou
vdelacou / index.ts
Created December 28, 2019 05:11
Material Ui Theme
import { createMuiTheme } from '@material-ui/core/styles';
export const DRAWER_WIDTH = 256;
const theme = createMuiTheme({
palette: {
primary: {
main: '#1a73e8',
light: '#4fc3f7',
},
@vdelacou
vdelacou / cognitoCreateAuthChallenge-cloudformation-template.json
Last active February 8, 2020 12:08
Passwordless Cognito With email or Phone
"PolicyDocument": {
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"mobiletargeting:SendMessages"
],
"Resource": [
{
@vdelacou
vdelacou / .prettierrc
Last active February 2, 2020 07:32
My Tslint config for AWS Lambda
{
"endOfLine": "lf",
"printWidth": 180,
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5"
}
const https = require('https');
const AWS = require("aws-sdk");
const urlParse = require("url").URL;
const REGION = process.env.REGION;
if (!REGION) {
throw new Error(`Function requires environment variable: 'REGION'`);
}
"""
A workspace is use as a tenant for our project<br>
The workspace could contains all informations related to your tenant. (eg: payment, integrations, ect ...)<br>
Only the owner can manage the workspace<br>
Only the owner can manage the list of users whom can access the workspace<br>
The workspace users can only read the workspace<br>
On Token generation, the list of your own workspace and the list of the workspaces you are an user will be added to the custom claims<br>
The Admin can access to all, even if he is not owner or user of a workspace<br>
"""
type WorkSpace