forked from MTG/essentia.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request MTG#102 from MTG/dev
Publish discogs realtime autotagging demo
- Loading branch information
Showing
47 changed files
with
7,369 additions
and
0 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,3 @@ | ||
*/node_modules | ||
*/public | ||
*/README.md |
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,7 @@ | ||
node_modules | ||
.DS_Store | ||
dist | ||
dist-ssr | ||
*.local | ||
!package-lock.json | ||
.vscode |
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 @@ | ||
FROM node:14.18.1 as fe-builder | ||
|
||
WORKDIR /usr/src/app | ||
COPY views/package.json . | ||
RUN npm install | ||
|
||
COPY views/ . | ||
RUN npm run build | ||
|
||
FROM node:14.18.1 | ||
|
||
RUN apt-get -y update && \ | ||
apt-get install -y ffmpeg && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /usr/src/app | ||
|
||
COPY server/package.json . | ||
|
||
RUN npm install | ||
|
||
COPY ./server/ ./ | ||
COPY --from=fe-builder /usr/src/app/dist/ ./public | ||
|
||
EXPOSE 8000 | ||
ENV PORT=8000 | ||
|
||
WORKDIR /usr/src/app | ||
CMD node server.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,12 @@ | ||
# Music autotagging with Discogs Effnet | ||
Demo showing realtime music autotagging based on the Discogs taxonomy (400 subgenre tags). | ||
|
||
## To start project locally (Dev version): | ||
- `cd server` | ||
- `npm run dev` | ||
- `cd ../views` | ||
- `npm run dev` | ||
|
||
## To build for deployment: | ||
- `docker build -t discogs-demo:latest .` | ||
- `docker run --rm -it -p 8000:8000 discogs-demo:latest node server.js` |
Oops, something went wrong.