-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[v2.0] - UI Revamp and Soundcloud Support (#24)
* Update dependencies * Add eslint and prettier * Linters * WIP * Style * Update icons * Add palette settings and theme * Update theme for bg color * Camera auto orbit controls * Update controls and perf improvements * feat(create-turbo): install dependencies * Move to app directory * Add missing dep * Remove extra build * Updates for dropzone * Update build script args * Reorganize code * Add soundcloud api proxy * Updates api * Test api * Updates for api * Test soundcloud track streaming * WIP sc search * Switch to context in anticipation of ditching leva * Saturated colors * Add additional audio sources * Consolidate code * Updates * Update controls * Cleanup * Bugfix --------- Co-authored-by: Turbobot <[email protected]>
- Loading branch information
1 parent
669fa11
commit 11b0d7e
Showing
165 changed files
with
12,789 additions
and
7,531 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
SOUNDCLOUD_CLIENT_ID=CHANGE_ME | ||
SOUNDCLOUD_SECRET=CHANGE_ME |
This file was deleted.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,5 @@ | ||
scratch.md | ||
|
||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
node_modules | ||
dist | ||
dist-ssr | ||
*.local | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
.idea | ||
.DS_Store | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? | ||
.env | ||
.vscode/ | ||
scratch.sh | ||
scratch/ | ||
notes/ |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
** | ||
!package*.json | ||
!src/ | ||
!tsconfig.json | ||
!.esclintrc.js |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/** @type {import("eslint").Linter.Config} */ | ||
const config = { | ||
root: true, | ||
parser: "@typescript-eslint/parser", | ||
ignorePatterns: [ | ||
"dist/", | ||
"node_modules/", | ||
"notes/" | ||
], | ||
parserOptions: { | ||
ecmaVersion: "latest", | ||
sourceType: "module", | ||
tsconfigRootDir: __dirname, | ||
project: [ | ||
"./tsconfig.json", | ||
], | ||
}, | ||
env: { | ||
"browser": true, | ||
"es2021": true | ||
}, | ||
extends: [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended" | ||
], | ||
overrides: [ | ||
{ | ||
"env": { | ||
"node": true | ||
}, | ||
"files": [ | ||
".eslintrc.{js,cjs}" | ||
], | ||
"parserOptions": { | ||
"sourceType": "script" | ||
} | ||
} | ||
], | ||
plugins: [ | ||
"@typescript-eslint" | ||
], | ||
rules: { | ||
} | ||
} | ||
|
||
module.exports = config; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
scratch.md | ||
scratch/ | ||
notes/ | ||
.env | ||
|
||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
node_modules | ||
dist | ||
dist-ssr | ||
*.local | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
.idea | ||
.DS_Store | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM node:18.16.0-alpine as base | ||
|
||
WORKDIR /app | ||
|
||
# Add package file | ||
COPY package*.json . | ||
RUN npm install | ||
|
||
COPY . . | ||
|
||
RUN npm run build | ||
|
||
FROM node:18.16.0-alpine as server | ||
# Start production image build | ||
# Copy node modules and build directory | ||
COPY --from=base /app/node_modules /app/node_modules | ||
COPY --from=base /app/dist /app/dist | ||
|
||
ENV NODE_ENV=production | ||
ENV PORT=8080 | ||
EXPOSE 8080 | ||
CMD ["/app/dist/app.js"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# API | ||
|
||
An application accessible API proxy to the soundcloud API. | ||
|
||
## Quickstart | ||
|
||
```bash | ||
npm install | ||
npm run dev | ||
``` | ||
|
||
## Run with docker: | ||
|
||
```bash | ||
docker build -t api-server . | ||
docker run -t -i \ | ||
--env SOUNDCLOUD_CLIENT_ID=... \ | ||
--env SOUNDCLOUD_SECRET=... \ | ||
-p 3000:8080 \ | ||
api-server | ||
``` | ||
|
||
Then, the equivalent of: | ||
|
||
```bash | ||
curl "https://api.soundcloud.com/playlists?q=test" \ | ||
-H "Authorization: OAuth <AUTH_TOKEN>" \ | ||
| jq | ||
``` | ||
|
||
becomes... | ||
|
||
```bash | ||
curl "localhost:3000/proxy/playlists?q=test" | jq | ||
``` | ||
|
||
## Fly Deployment | ||
|
||
```bash | ||
APP_NAME="CHANGE_ME" | ||
REGION="CHANGE_ME" | ||
ORG="CHANGE_ME" | ||
|
||
flyctl launch \ | ||
--remote-only \ | ||
--no-deploy \ | ||
--auto-confirm \ | ||
--dockerfile Dockerfile \ | ||
--path . \ | ||
-r $REGION \ | ||
--copy-config \ | ||
--org $ORG \ | ||
--name $APP_NAME | ||
|
||
flyctl secrets set \ | ||
-a $APP_NAME \ | ||
--stage \ | ||
SOUNDCLOUD_CLIENT_ID=CHANGE_ME \ | ||
SOUNDCLOUD_SECRET=CHANGE_ME | ||
|
||
flyctl deploy \ | ||
--remote-only \ | ||
-a $APP_NAME \ | ||
--config fly.toml \ | ||
--dockerfile Dockerfile | ||
``` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
kill_signal = "SIGINT" | ||
kill_timeout = 5 | ||
processes = [] | ||
|
||
[env] | ||
PORT = "8080" | ||
|
||
[experimental] | ||
auto_rollback = true | ||
|
||
[[services]] | ||
internal_port = 8080 | ||
processes = ["app"] | ||
protocol = "tcp" | ||
script_checks = [] | ||
|
||
[services.concurrency] | ||
hard_limit = 25 | ||
soft_limit = 20 | ||
type = "connections" | ||
|
||
[[services.ports]] | ||
force_https = true | ||
handlers = ["http"] | ||
port = 80 | ||
|
||
[[services.ports]] | ||
handlers = ["tls", "http"] | ||
port = 443 | ||
|
||
[[services.tcp_checks]] | ||
grace_period = "1s" | ||
interval = "15s" | ||
restart_limit = 0 | ||
timeout = "2s" | ||
|
||
[[services.http_checks]] | ||
interval = "15s" | ||
grace_period = "5s" | ||
method = "get" | ||
path = "/healthz" | ||
protocol = "http" | ||
restart_limit = 0 | ||
timeout = 2000 | ||
tls_skip_verify = false |
Oops, something went wrong.