From 80ecd73e01c2611d678c10219f8cc8dbda947cbc Mon Sep 17 00:00:00 2001 From: Paul Bienkowski Date: Wed, 17 Feb 2021 21:49:50 +0100 Subject: [PATCH] Move everything into "api" folder, for this will be a monorepo --- .dockerignore => api/.dockerignore | 0 .gitignore => api/.gitignore | 0 .migrations.js => api/.migrations.js | 0 Dockerfile => api/Dockerfile | 0 LICENSE => api/LICENSE | 0 README.md => api/README.md | 0 docker-compose.yaml => api/docker-compose.yaml | 0 .../migrations}/2020-12-01-1945-reconstruct-track-body.js | 0 .../migrations}/2020-12-01-1950-rebuild-track-data.js | 0 .../migrations}/2020-12-12-1823-original-filename.js | 0 .../migrations}/2020-12-13-2025-move-to-upload-file.js | 0 package-lock.json => api/package-lock.json | 0 package.json => api/package.json | 0 {src => api/src}/_helpers/generators.js | 0 {src => api/src}/_helpers/send-email.js | 0 {src => api/src}/_helpers/wrapRoute.js | 0 {src => api/src}/_middleware/error-handler.js | 0 {src => api/src}/_middleware/validate-request.js | 0 {src => api/src}/accounts/account.service.js | 0 {src => api/src}/accounts/accounts.controller.js | 0 {src => api/src}/config/email.js | 0 {src => api/src}/config/index.js | 0 {src => api/src}/config/passport.js | 0 {src => api/src}/db.js | 0 {src => api/src}/index.js | 0 {src => api/src}/logic/_tracks_testdata.js | 0 {src => api/src}/logic/tracks.js | 0 {src => api/src}/logic/tracks.test.js | 0 {src => api/src}/models/Comment.js | 0 {src => api/src}/models/Track.js | 0 {src => api/src}/models/TrackData.js | 0 {src => api/src}/models/User.js | 0 {src => api/src}/public/.keep | 0 {src => api/src}/routes/api/index.js | 0 {src => api/src}/routes/api/profiles.js | 0 {src => api/src}/routes/api/stats.js | 0 {src => api/src}/routes/api/tags.js | 0 {src => api/src}/routes/api/tracks.js | 0 {src => api/src}/routes/api/users.js | 0 {src => api/src}/routes/auth.js | 0 {src => api/src}/routes/index.js | 0 41 files changed, 0 insertions(+), 0 deletions(-) rename .dockerignore => api/.dockerignore (100%) rename .gitignore => api/.gitignore (100%) rename .migrations.js => api/.migrations.js (100%) rename Dockerfile => api/Dockerfile (100%) rename LICENSE => api/LICENSE (100%) rename README.md => api/README.md (100%) rename docker-compose.yaml => api/docker-compose.yaml (100%) rename {migrations => api/migrations}/2020-12-01-1945-reconstruct-track-body.js (100%) rename {migrations => api/migrations}/2020-12-01-1950-rebuild-track-data.js (100%) rename {migrations => api/migrations}/2020-12-12-1823-original-filename.js (100%) rename {migrations => api/migrations}/2020-12-13-2025-move-to-upload-file.js (100%) rename package-lock.json => api/package-lock.json (100%) rename package.json => api/package.json (100%) rename {src => api/src}/_helpers/generators.js (100%) rename {src => api/src}/_helpers/send-email.js (100%) rename {src => api/src}/_helpers/wrapRoute.js (100%) rename {src => api/src}/_middleware/error-handler.js (100%) rename {src => api/src}/_middleware/validate-request.js (100%) rename {src => api/src}/accounts/account.service.js (100%) rename {src => api/src}/accounts/accounts.controller.js (100%) rename {src => api/src}/config/email.js (100%) rename {src => api/src}/config/index.js (100%) rename {src => api/src}/config/passport.js (100%) rename {src => api/src}/db.js (100%) rename {src => api/src}/index.js (100%) rename {src => api/src}/logic/_tracks_testdata.js (100%) rename {src => api/src}/logic/tracks.js (100%) rename {src => api/src}/logic/tracks.test.js (100%) rename {src => api/src}/models/Comment.js (100%) rename {src => api/src}/models/Track.js (100%) rename {src => api/src}/models/TrackData.js (100%) rename {src => api/src}/models/User.js (100%) rename {src => api/src}/public/.keep (100%) rename {src => api/src}/routes/api/index.js (100%) rename {src => api/src}/routes/api/profiles.js (100%) rename {src => api/src}/routes/api/stats.js (100%) rename {src => api/src}/routes/api/tags.js (100%) rename {src => api/src}/routes/api/tracks.js (100%) rename {src => api/src}/routes/api/users.js (100%) rename {src => api/src}/routes/auth.js (100%) rename {src => api/src}/routes/index.js (100%) diff --git a/.dockerignore b/api/.dockerignore similarity index 100% rename from .dockerignore rename to api/.dockerignore diff --git a/.gitignore b/api/.gitignore similarity index 100% rename from .gitignore rename to api/.gitignore diff --git a/.migrations.js b/api/.migrations.js similarity index 100% rename from .migrations.js rename to api/.migrations.js diff --git a/Dockerfile b/api/Dockerfile similarity index 100% rename from Dockerfile rename to api/Dockerfile diff --git a/LICENSE b/api/LICENSE similarity index 100% rename from LICENSE rename to api/LICENSE diff --git a/README.md b/api/README.md similarity index 100% rename from README.md rename to api/README.md diff --git a/docker-compose.yaml b/api/docker-compose.yaml similarity index 100% rename from docker-compose.yaml rename to api/docker-compose.yaml diff --git a/migrations/2020-12-01-1945-reconstruct-track-body.js b/api/migrations/2020-12-01-1945-reconstruct-track-body.js similarity index 100% rename from migrations/2020-12-01-1945-reconstruct-track-body.js rename to api/migrations/2020-12-01-1945-reconstruct-track-body.js diff --git a/migrations/2020-12-01-1950-rebuild-track-data.js b/api/migrations/2020-12-01-1950-rebuild-track-data.js similarity index 100% rename from migrations/2020-12-01-1950-rebuild-track-data.js rename to api/migrations/2020-12-01-1950-rebuild-track-data.js diff --git a/migrations/2020-12-12-1823-original-filename.js b/api/migrations/2020-12-12-1823-original-filename.js similarity index 100% rename from migrations/2020-12-12-1823-original-filename.js rename to api/migrations/2020-12-12-1823-original-filename.js diff --git a/migrations/2020-12-13-2025-move-to-upload-file.js b/api/migrations/2020-12-13-2025-move-to-upload-file.js similarity index 100% rename from migrations/2020-12-13-2025-move-to-upload-file.js rename to api/migrations/2020-12-13-2025-move-to-upload-file.js diff --git a/package-lock.json b/api/package-lock.json similarity index 100% rename from package-lock.json rename to api/package-lock.json diff --git a/package.json b/api/package.json similarity index 100% rename from package.json rename to api/package.json diff --git a/src/_helpers/generators.js b/api/src/_helpers/generators.js similarity index 100% rename from src/_helpers/generators.js rename to api/src/_helpers/generators.js diff --git a/src/_helpers/send-email.js b/api/src/_helpers/send-email.js similarity index 100% rename from src/_helpers/send-email.js rename to api/src/_helpers/send-email.js diff --git a/src/_helpers/wrapRoute.js b/api/src/_helpers/wrapRoute.js similarity index 100% rename from src/_helpers/wrapRoute.js rename to api/src/_helpers/wrapRoute.js diff --git a/src/_middleware/error-handler.js b/api/src/_middleware/error-handler.js similarity index 100% rename from src/_middleware/error-handler.js rename to api/src/_middleware/error-handler.js diff --git a/src/_middleware/validate-request.js b/api/src/_middleware/validate-request.js similarity index 100% rename from src/_middleware/validate-request.js rename to api/src/_middleware/validate-request.js diff --git a/src/accounts/account.service.js b/api/src/accounts/account.service.js similarity index 100% rename from src/accounts/account.service.js rename to api/src/accounts/account.service.js diff --git a/src/accounts/accounts.controller.js b/api/src/accounts/accounts.controller.js similarity index 100% rename from src/accounts/accounts.controller.js rename to api/src/accounts/accounts.controller.js diff --git a/src/config/email.js b/api/src/config/email.js similarity index 100% rename from src/config/email.js rename to api/src/config/email.js diff --git a/src/config/index.js b/api/src/config/index.js similarity index 100% rename from src/config/index.js rename to api/src/config/index.js diff --git a/src/config/passport.js b/api/src/config/passport.js similarity index 100% rename from src/config/passport.js rename to api/src/config/passport.js diff --git a/src/db.js b/api/src/db.js similarity index 100% rename from src/db.js rename to api/src/db.js diff --git a/src/index.js b/api/src/index.js similarity index 100% rename from src/index.js rename to api/src/index.js diff --git a/src/logic/_tracks_testdata.js b/api/src/logic/_tracks_testdata.js similarity index 100% rename from src/logic/_tracks_testdata.js rename to api/src/logic/_tracks_testdata.js diff --git a/src/logic/tracks.js b/api/src/logic/tracks.js similarity index 100% rename from src/logic/tracks.js rename to api/src/logic/tracks.js diff --git a/src/logic/tracks.test.js b/api/src/logic/tracks.test.js similarity index 100% rename from src/logic/tracks.test.js rename to api/src/logic/tracks.test.js diff --git a/src/models/Comment.js b/api/src/models/Comment.js similarity index 100% rename from src/models/Comment.js rename to api/src/models/Comment.js diff --git a/src/models/Track.js b/api/src/models/Track.js similarity index 100% rename from src/models/Track.js rename to api/src/models/Track.js diff --git a/src/models/TrackData.js b/api/src/models/TrackData.js similarity index 100% rename from src/models/TrackData.js rename to api/src/models/TrackData.js diff --git a/src/models/User.js b/api/src/models/User.js similarity index 100% rename from src/models/User.js rename to api/src/models/User.js diff --git a/src/public/.keep b/api/src/public/.keep similarity index 100% rename from src/public/.keep rename to api/src/public/.keep diff --git a/src/routes/api/index.js b/api/src/routes/api/index.js similarity index 100% rename from src/routes/api/index.js rename to api/src/routes/api/index.js diff --git a/src/routes/api/profiles.js b/api/src/routes/api/profiles.js similarity index 100% rename from src/routes/api/profiles.js rename to api/src/routes/api/profiles.js diff --git a/src/routes/api/stats.js b/api/src/routes/api/stats.js similarity index 100% rename from src/routes/api/stats.js rename to api/src/routes/api/stats.js diff --git a/src/routes/api/tags.js b/api/src/routes/api/tags.js similarity index 100% rename from src/routes/api/tags.js rename to api/src/routes/api/tags.js diff --git a/src/routes/api/tracks.js b/api/src/routes/api/tracks.js similarity index 100% rename from src/routes/api/tracks.js rename to api/src/routes/api/tracks.js diff --git a/src/routes/api/users.js b/api/src/routes/api/users.js similarity index 100% rename from src/routes/api/users.js rename to api/src/routes/api/users.js diff --git a/src/routes/auth.js b/api/src/routes/auth.js similarity index 100% rename from src/routes/auth.js rename to api/src/routes/auth.js diff --git a/src/routes/index.js b/api/src/routes/index.js similarity index 100% rename from src/routes/index.js rename to api/src/routes/index.js