Skip to content

Commit

Permalink
Add SIWE
Browse files Browse the repository at this point in the history
* chore: setup .vscode and .husky

* feat: setup Postgres and GraphQL (WIP)

* feat: integrate Postgres to GraphQL API

* feat: add Auth module

* feat: add Auth session handling

* feat: add signIn mutation

* feat: add signOut mutation

* feat: add AuthGuards
  • Loading branch information
blocknomad authored Dec 27, 2021
1 parent cce636f commit 07fc6c6
Show file tree
Hide file tree
Showing 42 changed files with 20,290 additions and 90 deletions.
17 changes: 17 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
NODE_ENV=development
PORT=3000

SESSION_SECRET=a3ab20c8b130e6a10d52e7e18babb20b01e9aa6f63fc0935df2415074111feeb208dff0
SESSION_COOKIE_NAME=siwe-fractalflows-session

INFURA_PROJECT_ID=899ced2f235145cdbf1fcd9342eac446

TYPEORM_CONNECTION = postgres
TYPEORM_HOST = abul.db.elephantsql.com
TYPEORM_USERNAME = kmeehvyb
TYPEORM_PASSWORD = enCOv3UV3npE8taixW-Xiwhf5dFW7mt7
TYPEORM_DATABASE = kmeehvyb
TYPEORM_PORT = 5432
TYPEORM_SYNCHRONIZE = true
TYPEORM_LOGGING = true
TYPEORM_ENTITIES = dist/src/modules/**/entities/*.js
Empty file modified .eslintrc.js
100644 → 100755
Empty file.
8 changes: 7 additions & 1 deletion .gitignore
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# env
.env

# db
/db

# compiled output
/dist
/node_modules
Expand Down Expand Up @@ -32,4 +38,4 @@ lerna-debug.log*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/extensions.json
5 changes: 5 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn format
yarn lint
Empty file modified .prettierrc
100644 → 100755
Empty file.
9 changes: 9 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"editor.tabSize": 2,
"files.insertFinalNewline": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"typescript.updateImportsOnFileMove.enabled": "always"
}
Empty file modified README.md
100644 → 100755
Empty file.
3 changes: 2 additions & 1 deletion nest-cli.json
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"collection": "@nestjs/schematics",
"sourceRoot": "src"
"sourceRoot": "src/modules",
"entryFile": "src/main"
}
Loading

0 comments on commit 07fc6c6

Please sign in to comment.