initial commit
Some checks failed
Build Images and Deploy / Update-PROD-Stack (push) Failing after 17s

This commit is contained in:
2026-01-28 23:52:15 -05:00
commit 787c97a52f
13 changed files with 290 additions and 0 deletions

7
backend/Dockerfile Normal file
View File

@@ -0,0 +1,7 @@
FROM node:20-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 4000
CMD ["npm", "run", "dev"]

17
backend/package.json Normal file
View File

@@ -0,0 +1,17 @@
{
"name": "wtp-backend",
"version": "0.1.0",
"main": "src/index.js",
"type": "module",
"scripts": {
"dev": "node src/index.js"
},
"dependencies": {
"express": "^4.18.2",
"pg": "^8.11.3",
"jsonwebtoken": "^9.0.2",
"bcryptjs": "^2.4.3",
"dotenv": "^16.4.5",
"cors": "^2.8.5"
}
}

17
backend/src/index.js Normal file
View File

@@ -0,0 +1,17 @@
import express from 'express';
import cors from 'cors';
import dotenv from 'dotenv';
dotenv.config();
const app = express();
app.use(cors());
app.use(express.json());
app.get('/', (req, res) => {
res.json({ message: "What's The Point API" });
});
const PORT = process.env.PORT || 4000;
app.listen(PORT, () => {
console.log(`API running on port ${PORT}`);
});