{"id":26045171,"url":"https://github.com/asishkumar-gouda/cicd-for-databases","last_synced_at":"2026-05-05T04:09:21.877Z","repository":{"id":280094933,"uuid":"940967271","full_name":"asishkumar-gouda/cicd-for-databases","owner":"asishkumar-gouda","description":"Automated branching for managed postgres database using Neon and GH Actions.","archived":false,"fork":false,"pushed_at":"2025-03-06T03:28:25.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-07T00:43:47.871Z","etag":null,"topics":["branch","github-actions","neondb","postgresql","pull-requests","replicas"],"latest_commit_sha":null,"homepage":"","language":"EJS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/asishkumar-gouda.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-01T06:48:10.000Z","updated_at":"2025-03-06T03:28:29.000Z","dependencies_parsed_at":"2025-03-07T15:43:15.047Z","dependency_job_id":null,"html_url":"https://github.com/asishkumar-gouda/cicd-for-databases","commit_stats":null,"previous_names":["asishgouda/cicd-for-databases","asishkumar-gouda/cicd-for-databases"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/asishkumar-gouda/cicd-for-databases","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asishkumar-gouda%2Fcicd-for-databases","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asishkumar-gouda%2Fcicd-for-databases/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asishkumar-gouda%2Fcicd-for-databases/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asishkumar-gouda%2Fcicd-for-databases/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asishkumar-gouda","download_url":"https://codeload.github.com/asishkumar-gouda/cicd-for-databases/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asishkumar-gouda%2Fcicd-for-databases/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32634768,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"online","status_checked_at":"2026-05-05T02:00:06.033Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["branch","github-actions","neondb","postgresql","pull-requests","replicas"],"created_at":"2025-03-07T19:32:18.927Z","updated_at":"2026-05-05T04:09:21.860Z","avatar_url":"https://github.com/asishkumar-gouda.png","language":"EJS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node.js PostgreSQL Todo Application\n\nA simple Node.js application demonstrating database migrations with PostgreSQL using `node-pg-migrate`.\n\n## Features\n\n- PostgreSQL database integration\n- Database migrations using `node-pg-migrate`\n- Environment-based configuration\n- Simple todo management system\n\n## Prerequisites\n\n- Node.js (v14 or higher)\n- PostgreSQL database server\n- npm (Node Package Manager)\n\n## Project Structure\n\n```\n├── migrations/\n│   └── 1698765432345_create-todos-table.js\n├── .env.example\n├── .env\n├── index.js\n├── package.json\n└── README.md\n```\n\n## Setup\n\n1. Clone the repository\n2. Install dependencies:\n   ```bash\n   npm install\n   ```\n3. Create a `.env` file based on `.env.example`:\n   ```bash\n   cp .env.example .env\n   ```\n4. Update the `.env` file with your PostgreSQL connection details:\n   ```\n   DATABASE_URL=postgres://username:password@localhost:5432/database_name\n   ```\n\n## Database Migrations\n\nThis project uses `node-pg-migrate` for managing database schema changes.\n\n### Available Migration Commands\n\n- Run all pending migrations:\n  ```bash\n  npm run migrate:up\n  ```\n- Revert the last migration:\n  ```bash\n  npm run migrate:down\n  ```\n\n### Current Migrations\n\n1. `1698765432345_create-todos-table.js`\n   - Creates the initial `todos` table with:\n     - `id` (Primary Key)\n     - `title` (varchar)\n     - `completed` (boolean)\n     - `created_at` (timestamp)\n\n## Running the Application\n\nStart the application:\n```bash\nnpm start\n```\n\nThe application will:\n1. Connect to the PostgreSQL database\n2. Display the current timestamp\n3. List all todos in the database\n\n## Environment Variables\n\n| Variable      | Description                | Example                                           |\n|--------------|----------------------------|---------------------------------------------------|\n| DATABASE_URL | PostgreSQL connection URL  | postgres://username:password@localhost:5432/todos |\n\n## Security Notes\n\n- Never commit the `.env` file to version control\n- Keep your database credentials secure\n- The `.env.example` file should not contain actual credentials\n\n## Scripts\n\n- `npm start` - Run the application\n- `npm run migrate` - Run database migrations\n- `npm run migrate:up` - Apply pending migrations\n- `npm run migrate:down` - Revert the last migration\n\n## Dependencies\n\n- `pg` - PostgreSQL client for Node.js\n- `node-pg-migrate` - Database migration tool\n- `dotenv` - Environment variable management\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasishkumar-gouda%2Fcicd-for-databases","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasishkumar-gouda%2Fcicd-for-databases","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasishkumar-gouda%2Fcicd-for-databases/lists"}