Sign inSign up

jnaneshreddy/acquisitions

By jnaneshreddy

โ€ขUpdated about 1 year ago

Acquisitions API - Node.js backend service with Express, PostgreSQL, and JWT authentication

Image
0

1.8K

jnaneshreddy/acquisitions repository overview

โ Acquisitions API

A Node.js backend service built with Express, PostgreSQL, and JWT authentication.

โ Features

  • ๐Ÿš€ Express.js - Fast, unopinionated web framework
  • ๐Ÿ—ƒ๏ธ PostgreSQL - Reliable relational database
  • ๐Ÿ” JWT Authentication - Secure token-based auth
  • ๐Ÿ›ก๏ธ Arcjet Security - Rate limiting and bot protection
  • ๐Ÿณ Docker Support - Containerized deployment
  • ๐Ÿงช Testing - Jest with coverage reports
  • ๐Ÿ“ Code Quality - ESLint and Prettier
  • ๐Ÿ”„ CI/CD - GitHub Actions workflows

โ Quick Start

โ Development
# Start development environment
./start.bat dev        # Windows
./start.sh dev          # Linux/macOS

# Access the API
curl http://localhost:3001/health
โ Production
# Start production environment
./start.bat prod        # Windows
./start.sh prod         # Linux/macOS

# Access via Nginx proxy
curl http://localhost/health
โ Docker
# Pull and run the latest image
docker pull jnaneshreddy/acquisitions:latest
docker run -p 3000:3000 jnaneshreddy/acquisitions:latest

โ API Endpoints

  • GET /health - Health check
  • GET /api - API status
  • POST /api/auth/register - User registration
  • POST /api/auth/login - User login
  • GET /api/users/profile - Get user profile (authenticated)

โ Environment Variables

# 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

โ Development

# Install dependencies
npm install

# Run tests
npm test

# Lint and format
npm run lint
npm run format

# Database setup
npm run db:setup

โ License

ISC

Tag summary

Content type

Image

Digest

sha256:b7d589509โ€ฆ

Size

65.6 MB

Last updated

about 1 year ago

docker pull jnaneshreddy/acquisitions