Skip to content

ankushchhabra02/acquisitions

Repository files navigation


Acquisition - Production Ready Backend


I designed and built this project to demonstrate how to take an API from code to full-scale production using modern DevOps tools. The application is fully containerized with Docker and orchestrated using Kubernetes, backed by Git & GitHub for version control and CI/CD pipelines for automated deployment. It features a scalable backend powered by Node.js, Express.js, Neon Postgres, and Drizzle ORM, with comprehensive testing to ensure reliability. This project showcases my ability to containerize services, manage deployments, automate workflows, and monitor applications — delivering a robust, production-ready system from the ground up.

  • Arcjet is a developer-first security layer that enables you to protect your applications with minimal code. It offers features like bot protection, rate limiting, email validation, and defense against common attacks. Arcjet's SDK integrates seamlessly into your application, providing real-time security decisions without the need for additional infrastructure.

  • Docker is a leading containerization platform that allows you to package applications along with all their dependencies into portable, lightweight containers. This ensures consistent behavior across different environments, simplifies deployment, and makes scaling applications more efficient.

  • Kubernetes is an open-source orchestration system designed to automate the deployment, scaling, and management of containerized applications. It handles tasks like load balancing, self-healing, and rolling updates, making it essential for running applications reliably at scale.

  • Warp is a modern terminal built in Rust, optimized for developer productivity. It offers features like AI-assisted commands, easy collaboration, command history search, and a faster, more intuitive interface compared to traditional terminals.

  • Node.js is a fast, event-driven JavaScript runtime built on Chrome’s V8 engine. It enables developers to build scalable, high-performance server-side applications and APIs using JavaScript on both the client and server side.

  • Express.js is a minimal and flexible Node.js web application framework. It provides robust features for building APIs and server-side applications, including routing, middleware support, and simplified request/response handling.

  • Neon Postgres is a fully managed, serverless Postgres database designed for modern cloud applications. It offers autoscaling, branching for development workflows, and simplifies database management without compromising performance.

  • Drizzle ORM is a TypeScript-first, lightweight ORM for SQL databases. It provides type safety, schema migrations, and an intuitive API for building reliable and maintainable database queries.

  • Zod is a TypeScript-first schema validation library that ensures runtime type safety. It helps developers validate data structures, enforce strict type checks, and catch errors early in the development process.

👉 Absolute Imports: Clean import paths using # prefix aliases for more organized and readable code.

👉 Business Listings: Create, update, delete, and browse business listings efficiently.

👉 Database Integration: Integrate PostgreSQL with Drizzle ORM, including migrations for schema management.

👉 Deal Management: Create deals on listings, accept or reject offers, and track deal status.

👉 Docker Support: Full containerization with development and production environments for consistent deployment.

👉 ESLint + Prettier: Enforce code linting and formatting rules for cleaner, consistent code.

👉 Health Monitoring: Endpoint to check system health and monitor overall application status.

👉 Hot Reload: Development server automatically restarts on file changes for faster iteration.

👉 Jest Testing: Framework for unit and integration testing with SuperTest for HTTP endpoints.

👉 Request Validation: Validate all API inputs using Zod schemas to ensure data integrity.

👉 Role-Based Access Control: Implement admin and user roles with permission middleware for secure operations.

👉 Structured Logging: Winston-based logging throughout the application for better monitoring and debugging.

👉 User Authentication & Authorization: JWT-based authentication supporting signup, signin, and signout workflows.

👉 User Management: CRUD operations for user accounts, enabling easy administration and management.

And many more, including code architecture and reusability.

Follow these steps to set up the project locally on your machine.

Prerequisites

Make sure you have the following installed on your machine:

Cloning the Repository

git clone https://github.com/ankushchhabra02/acquisitions.git
cd acquisitions

Installation

Install the project dependencies using npm:

npm install

Set Up Environment Variables

Create a new file named .env in the root of your project and add the following content:

# Server Configuration
PORT=3000
NODE_ENV=development
LOG_LEVEL=info

# Database Configuration
DATABASE_URL=

# Arcjet
ARCJET_KEY=

Running the Project

npm run dev

Open http://localhost:3000 in your browser to view the project.


🖼️ Screenshots

Here’s a quick look at the project setup, structure, and execution flow 👇

Feature Screenshot
🧩 API Structure API Folder Structure
🐳 Docker Setup Docker Containers Running
⚙️ CI/CD Pipeline GitHub Actions CI/CD
🚀 Deployment Preview Kubernetes Deployment

About

I designed and built this project to demonstrate how to take an API from code to full-scale production using modern DevOps tools. The application is fully containerized with Docker and orchestrated using Kubernetes, backed by Git & GitHub for version control and CI/CD pipelines for automated deployment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors