Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions api/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
npm-debug.log
.env
19 changes: 19 additions & 0 deletions api/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# ==========================================
# payNEXT Environment Variables Template
# ==========================================
# COPY THIS FILE AND RENAME IT TO .env
# Command: cp .env.example .env

# Remote Shared Database
DATABASE_URL=postgresql://USER:PASSWORD@HOST:5432/paynext_db?sslmode=require

# Optional split variables if your backend uses them
DB_HOST=your-db-host.supabase.com
DB_PORT=3000
DB_USER=postgres
DB_PASSWORD=change_me
DB_NAME=postgres
Comment on lines +11 to +15
DB_SSL=true

# API Secrets
JWT_SECRET=choose_your_own_local_jwt_secret
7 changes: 7 additions & 0 deletions api/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM node:20-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install --omit=dev
COPY . .
EXPOSE 3000
CMD ["node", "src/server.js"]
Loading
Loading