Acquisitions API - Node.js backend service with Express, PostgreSQL, and JWT authentication
1.8K
A Node.js backend service built with Express, PostgreSQL, and JWT authentication.
# Start development environment
./start.bat dev # Windows
./start.sh dev # Linux/macOS
# Access the API
curl http://localhost:3001/health
# Start production environment
./start.bat prod # Windows
./start.sh prod # Linux/macOS
# Access via Nginx proxy
curl http://localhost/health
# Pull and run the latest image
docker pull jnaneshreddy/acquisitions:latest
docker run -p 3000:3000 jnaneshreddy/acquisitions:latest
GET /health - Health checkGET /api - API statusPOST /api/auth/register - User registrationPOST /api/auth/login - User loginGET /api/users/profile - Get user profile (authenticated)# Server Configuration
PORT=3000
NODE_ENV=development
LOG_LEVEL=info
# Database
DATABASE_URL=postgresql://user:password@host:port/database
# Authentication
JWT_SECRET=your-secret-key
ARCJET_KEY=your-arcjet-key
# Install dependencies
npm install
# Run tests
npm test
# Lint and format
npm run lint
npm run format
# Database setup
npm run db:setup
ISC
Content type
Image
Digest
sha256:b7d589509โฆ
Size
65.6 MB
Last updated
about 1 year ago
docker pull jnaneshreddy/acquisitions