-
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.
- Loading branch information
Ubuntu
committed
Nov 6, 2024
1 parent
cf30294
commit 2336bad
Showing
45 changed files
with
9,196 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,9 @@ | ||
# Dockerfile.backend | ||
|
||
FROM node:16-alpine | ||
WORKDIR /app | ||
COPY backend/package*.json ./ | ||
RUN npm install | ||
COPY backend/ ./ | ||
EXPOSE 3000 | ||
CMD ["node", "index.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,15 @@ | ||
# Dockerfile.frontend | ||
|
||
# Step 1: Build the Vue app | ||
FROM node:16-alpine as build | ||
WORKDIR /app | ||
COPY frontend/package*.json ./ | ||
RUN npm install | ||
COPY frontend/ ./ | ||
RUN npm run build | ||
|
||
# Step 2: Serve with Nginx | ||
FROM nginx:alpine | ||
COPY --from=build /app/dist /usr/share/nginx/html | ||
EXPOSE 80 | ||
CMD ["nginx", "-g", "daemon off;"] |
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,15 @@ | ||
const express = require('express'); | ||
const axios = require('axios'); | ||
const app = express(); | ||
const port = 3000; | ||
|
||
app.get('/', (req, res) => res.send('Backend server running')); | ||
|
||
// Placeholder for Spotify OAuth routes (e.g., /login, /callback) | ||
app.get('/login', (req, res) => { | ||
res.send('Login route - Redirect to Spotify OAuth'); | ||
}); | ||
|
||
app.listen(port, () => { | ||
console.log(`Backend running on http://localhost:${port}`); | ||
}); |
Oops, something went wrong.