-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/backend server #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
engbergandreas
wants to merge
17
commits into
master
Choose a base branch
from
feature/backend-server
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
905d28a
update gitignore
engbergandreas c32bccd
project initialization
engbergandreas 173d7b2
Update wormhole wip
engbergandreas ee04efa
rename serverinstance -> session, update endpoints
engbergandreas 8287645
Fix issue where data messages were split and not correctly consumed
engbergandreas 3dd6df6
Assign a peerId only if the peer authenticated with the session
engbergandreas 548f832
Unify and fix comments, and log messages. Minor code cleanup
engbergandreas aa2871e
refactor
engbergandreas 7a4002f
cleanup code, add admin check for removing a server
engbergandreas 7959832
further code improvements
engbergandreas 0e8b99b
lint
engbergandreas 30358f5
Update env sample
engbergandreas f9a0ad6
update readme
engbergandreas 12e0acb
fix pr comments
engbergandreas d42d436
fix issues with inactiveTimestamp not updating correctly
engbergandreas a93aeb5
fix pr comments
engbergandreas 19e8984
fix pr comments
engbergandreas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| SERVER_API_PATH=/api/v1 | ||
|
|
||
| # The port on which the HTTP server will listen for incoming requests | ||
| HTTP_PORT = 25000 | ||
|
|
||
| # The port on which the Wormhole will listen for incoming peer connections from OpenSpace | ||
| WORMHOLE_PORT = 25001 | ||
|
|
||
| # Admin SDK file paths | ||
| ADMIN_AUTH_SDK_FILEPATH = "" | ||
| ADMIN_DB_SDK_FILEPATH = "" | ||
|
|
||
| # Realtime database config | ||
| DATABASE_FIREBASE_DATABASE_URL = "" | ||
|
|
||
| CORS_ORIGIN = "" | ||
|
|
||
| # Logs additional debug messages if set to true | ||
| DEBUG = "true" |
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| { | ||
| "MD003": { | ||
| "style": "atx" | ||
| }, | ||
| "MD004": { | ||
| "style": "dash" | ||
| }, | ||
| "MD007": { | ||
| "indent": 2, | ||
| "start_indented": true | ||
| }, | ||
| "MD012": false, | ||
| "MD013": false, | ||
| "MD022": false, | ||
| "MD024": { | ||
| "siblings_only": true | ||
| }, | ||
| "MD029": { | ||
| "style": "one" | ||
| }, | ||
| "MD031": false, | ||
| "MD032": false, | ||
| "MD033": false, | ||
| "MD035": { | ||
| "style": "---" | ||
| }, | ||
| "MD041": { | ||
| "allow_preamble": true | ||
| }, | ||
| "MD046": { | ||
| "style": "fenced" | ||
| }, | ||
| "MD048": { | ||
| "style": "backtick" | ||
| }, | ||
| "MD049": { | ||
| "style": "asterisk" | ||
| }, | ||
| "MD050": { | ||
| "style": "asterisk" | ||
| }, | ||
| "MD051": false, | ||
| "MD055": { | ||
| "style": "leading_and_trailing" | ||
| }, | ||
| "MD058": false, | ||
| "MD059": false, | ||
| "MD060": { | ||
| "style": "compact" | ||
| } | ||
| } |
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| import globals from 'globals'; | ||
| import eslintConfigPrettier from 'eslint-config-prettier'; | ||
| import simpleImportSort from 'eslint-plugin-simple-import-sort'; | ||
| import tseslint from 'typescript-eslint'; | ||
| import js from '@eslint/js'; | ||
|
|
||
| export default tseslint.config( | ||
| { ignores: ['dist'] }, | ||
| { | ||
| extends: [ | ||
| js.configs.recommended, | ||
| ...tseslint.configs.recommended, | ||
| eslintConfigPrettier | ||
| ], | ||
| files: ['**/*.{ts,tsx}'], | ||
| ignores: ['**/*.d.ts'], | ||
| languageOptions: { | ||
| ecmaVersion: 2020, | ||
| globals: globals.node | ||
| }, | ||
| plugins: { | ||
| 'simple-import-sort': simpleImportSort | ||
| }, | ||
| linterOptions: { | ||
| reportUnusedDisableDirectives: 'error' | ||
| }, | ||
| rules: { | ||
| '@typescript-eslint/no-explicit-any': 'warn', // Disallow usage of any | ||
| 'no-duplicate-imports': 'error', // Imports should be on one line | ||
| 'no-console': 'warn', | ||
| 'prefer-destructuring': ['error', { object: true, array: true }], | ||
| 'simple-import-sort/exports': 'error', | ||
| 'simple-import-sort/imports': [ | ||
| 'error', | ||
| { | ||
| groups: [ | ||
| // Packages `react` related packages come first. | ||
| ['^react', '^@?\\w'], | ||
| // Internal packages. | ||
| ['^(@|components)(/.*|$)'], | ||
| // Side effect imports. | ||
| ['^\\u0000'], | ||
| // Parent imports. Put `..` last. | ||
| ['^\\.\\.(?!/?$)', '^\\.\\./?$'], | ||
| // Other relative imports. Put same-folder imports and `.` last. | ||
| ['^\\./(?=.*/)(?!/?$)', '^\\.(?!/?$)', '^\\./?$'], | ||
| // Style imports. | ||
| ['^.+\\.?(css)$'] | ||
| ] | ||
| } | ||
| ], | ||
|
|
||
| // Guards against stupidity | ||
| 'no-self-compare': 'error', | ||
| 'no-unreachable-loop': 'error', | ||
| 'no-template-curly-in-string': 'error', // Catches "${}" template strings | ||
| 'default-case': ['error', { commentPattern: '^skip\\sdefault' }], // require default switch case | ||
| 'default-case-last': 'error' // enforce default switch case last | ||
| } | ||
| } | ||
| ); | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.