Initial fullstack scaffold: Events, Guests, Budget, Bookings
- Express backend with PostgreSQL (JWT auth, full CRUD) - React + Vite + TailwindCSS frontend in Hebrew (RTL) - Features: Digital Booking System, Guest Management, Smart Budget Management - Docker Compose with postgres healthcheck - Auto-runs migrations on startup Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
21
Dockerfile
Normal file
21
Dockerfile
Normal file
@@ -0,0 +1,21 @@
|
||||
FROM node:20-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install backend deps
|
||||
COPY package*.json ./
|
||||
RUN npm install --production
|
||||
|
||||
# Build frontend
|
||||
COPY client/package*.json ./client/
|
||||
RUN cd client && npm install
|
||||
|
||||
COPY client/ ./client/
|
||||
RUN cd client && npm run build
|
||||
|
||||
# Copy backend source
|
||||
COPY server.js db.js migrate.js ./
|
||||
COPY routes/ ./routes/
|
||||
|
||||
# Run migrations then start server
|
||||
CMD node migrate.js && node server.js
|
||||
Reference in New Issue
Block a user