start-db

Starts a local PostgreSQL database via Docker Compose for the MC-ORG project.

Updated Jun 26, 2022
One-click install
npx skills add https://github.com/evengul/mc-org --skill start-db
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: start-db
Source: https://github.com/evengul/mc-org/tree/main/.claude/skills/start-db
Command: npx skills add https://github.com/evengul/mc-org --skill start-db

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill simplifies the process of initiating your local PostgreSQL database, ensuring it's ready for development without manual command-line intervention.

Core Features & Use Cases

  • Database Initialization: Effortlessly starts the PostgreSQL database using Docker Compose.
  • Development Environment Setup: Ensures your development environment has a running database instance.
  • Use Case: Before starting development on the MC-ORG application, you need to ensure the PostgreSQL database is running. This Skill handles that setup step for you.

Quick Start

Run webapp/scripts/start-db.sh to start the database.

Frequently Asked Questions about start-db

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I start a local PostgreSQL database for development?

Run the `webapp/scripts/start-db.sh` script to start a local PostgreSQL database using Docker Compose. This automates the initialization process and ensures the database is ready for development without manual command-line intervention.

Do I need Docker installed to run this local database setup script?

Yes, you need both Docker and Docker Compose installed and running on your system to use this database setup. The script relies on Docker Compose to initiate and manage the local PostgreSQL database instance.

What is the best way to automate PostgreSQL startup for a development environment?

Using a shell script like `start-db.sh` is an effective way to automate PostgreSQL startup for a development environment. It leverages Docker Compose to ensure database availability with a single command, removing manual setup friction.

Can I use this database initialization script for projects other than MC-ORG?

This database initialization script is specifically designed for the MC-ORG project to ensure database availability. While it uses standard Docker Compose for PostgreSQL, its configuration is tailored to the MC-ORG development environment.

Why does my local PostgreSQL database setup fail to start?

Your local PostgreSQL database setup may fail if Docker or Docker Compose is not installed or actively running. Ensure both services are operational on your machine before executing the database startup script.