Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
08ae72c
Added basic functionality
RagingLink Sep 16, 2024
f101861
Update eslint flat config
RagingLink Sep 16, 2024
8685bfd
Updated logger methods
RagingLink Sep 17, 2024
c181baf
Remove old eslint file
RagingLink Sep 17, 2024
66a8d6f
Fix logging issues
RagingLink Sep 18, 2024
aebaf25
Fix path issues and json imports
RagingLink Sep 18, 2024
4f50abe
Remove debugging code
RagingLink Sep 18, 2024
9cc9536
Fixed more path issues
RagingLink Sep 18, 2024
6f8667e
Fully added initial version of operations
RagingLink Sep 18, 2024
549a4b9
Change config type to node
RagingLink Sep 18, 2024
17e86f3
Change file structure and fixed linting
RagingLink Sep 21, 2024
102e2be
Eslint tweaks
RagingLink Sep 23, 2024
970b2f0
Fastify rewrite and typebox schemas
RagingLink Sep 23, 2024
e2de704
Added unknownCatch rule
RagingLink Sep 24, 2024
7f4f2bf
Fix bug related to different this context
RagingLink Sep 24, 2024
b89922a
Added more error catching
RagingLink Sep 24, 2024
0859834
Added ENV variables to example
RagingLink Sep 24, 2024
4721acb
Delete unused packages
RagingLink Sep 25, 2024
7f496b8
Yarn update
RagingLink Sep 25, 2024
db9da16
Fixed eslint issue not ignoring .js files
RagingLink Sep 25, 2024
7b413be
Misc changes 123
RagingLink Sep 25, 2024
775beef
Merge remote-tracking branch 'origin/master' into rewrite-1
RagingLink Sep 25, 2024
149e2cd
Updated eslint config
RagingLink Sep 26, 2024
c089750
Fixed linting issues and misc restructuring
RagingLink Sep 26, 2024
edeba78
Removed unused eslint devDep
RagingLink Sep 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
POSTGRES_USER=
POSTGRES_DB=
POSTGRES_PASSWORD=
POSTGRES_HOST=
POSTGRES_PORT=
# This is the database url when using docker.
# For development ./api/.env is used with a different database url
# not sure if I can improve that.
DATABASE_URL=

NODE_ENV=
API_PORT=
#DISCORD_TOKEN=
#DISCORD_LOGGING=

# Docs
DOCS_PORT=
DOCS_HOST=
5 changes: 3 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"configurations": [

{
"type": "pwa-node",
"type": "node",
"request": "launch",
"name": "Debug main",
"skipFiles": [
Expand All @@ -18,7 +18,8 @@
"program": "${workspaceFolder}/api/api.ts",
"outFiles": [
"${workspaceFolder}/**/*.js"
]
],
"envFile": "${workspaceFolder}/api/.env"
}
]
}
16 changes: 8 additions & 8 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"files.exclude": {
"**/*.js": {
"when": "$(basename).ts"
},
"**/out": true,
"**/*.js.map": true,
"**/node_modules": true
},
"eslint.workingDirectories": ["./api"],
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"editor.defaultFormatter": "vscode.typescript-language-features",
"eslint.format.enable": true,
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"eslint.useFlatConfig": true,
"npm.packageManager": "yarn",
"files.eol": "\n",
"typescript.preferences.importModuleSpecifier": "relative",
Expand All @@ -20,13 +20,13 @@
"editor.unicodeHighlight.invisibleCharacters": false,
"editor.wordWrap": "off"
},
"[typescript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"[shellscript]": {
"editor.defaultFormatter": "shakram02.bash-beautify"
},
"[jsonc]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"[typescript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
}
}
248 changes: 0 additions & 248 deletions api/.eslintrc.json

This file was deleted.

19 changes: 18 additions & 1 deletion api/.gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,26 @@
# Ignore JS files
*.js
*js.map

# NPM and yarn
node_modules
yarn-error.log
.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# Config files
config.json
.env

# Ignore assets
routes/sharp/images/*
prisma/migrations*
./build.sh
assets/fonts/google
tmp

tmp
1 change: 1 addition & 0 deletions api/.yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
Loading