{"id":50915490,"url":"https://github.com/ricky-ultimate/express-backend-starter-template","last_synced_at":"2026-06-16T14:30:59.513Z","repository":{"id":353758478,"uuid":"896568617","full_name":"ricky-ultimate/express-backend-starter-template","owner":"ricky-ultimate","description":" Express.js backend template with TypeScript, Prisma, and PostgreSQL.","archived":false,"fork":false,"pushed_at":"2026-04-25T11:44:47.000Z","size":63,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-25T12:26:13.642Z","etag":null,"topics":["express","postgresql","prisma","template","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":false,"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/ricky-ultimate.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-11-30T17:57:00.000Z","updated_at":"2026-04-25T11:44:50.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ricky-ultimate/express-backend-starter-template","commit_stats":null,"previous_names":["ricky-ultimate/express-backend-starter-template"],"tags_count":null,"template":true,"template_full_name":null,"purl":"pkg:github/ricky-ultimate/express-backend-starter-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ricky-ultimate%2Fexpress-backend-starter-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ricky-ultimate%2Fexpress-backend-starter-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ricky-ultimate%2Fexpress-backend-starter-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ricky-ultimate%2Fexpress-backend-starter-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ricky-ultimate","download_url":"https://codeload.github.com/ricky-ultimate/express-backend-starter-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ricky-ultimate%2Fexpress-backend-starter-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34410778,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-16T02:00:06.860Z","response_time":126,"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":["express","postgresql","prisma","template","typescript"],"created_at":"2026-06-16T14:30:58.667Z","updated_at":"2026-06-16T14:30:59.508Z","avatar_url":"https://github.com/ricky-ultimate.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Express Backend Starter Template\n\nA production-ready Express.js backend template with TypeScript, Prisma, and PostgreSQL.\n\n## Tech Stack\n\n- Express.js 5\n- TypeScript\n- Prisma ORM\n- PostgreSQL\n- Helmet for security\n- CORS enabled\n- Morgan for logging\n\n## Project Structure\n\n```\n├── src/\n│   ├── config/\n│   │   └── db.config.ts\n│   ├── constants/\n│   │   ├── env.ts\n│   │   └── routes.ts\n│   ├── core/\n│   │   └── auth/\n│   │       └── auth.routes.ts\n│   ├── utils/\n│   │   └── logger.utils.ts\n│   └── index.ts\n├── prisma/\n│   └── schema.prisma\n├── .env\n├── package.json\n├── tsconfig.json\n└── prisma.config.ts\n```\n\n## Getting Started\n\n### Prerequisites\n\n- Node.js installed\n- PostgreSQL installed and running\n- Git installed\n\n### Installation\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/ricky-ultimate/express-backend-starter-template.git your-project-name\ncd your-project-name\n```\n\n2. Remove git history and initialize fresh:\n```bash\nrm -rf .git\ngit init\n```\n\n3. Install dependencies:\n```bash\nnpm install\n```\n\n4. Create .env file:\n```bash\n# Create .env with the following variables\nPORT=5001\nDATABASE_URL=\"postgresql://postgres:password@localhost:5432/your_database?schema=public\"\n```\n\n5. Generate Prisma client:\n```bash\nnpx prisma generate\n```\n\n6. Run initial migration:\n```bash\nnpx prisma migrate dev --name init\n```\n\n7. Start development server:\n```bash\nnpm run dev\n```\n\n## Available Scripts\n\n| Script | Description |\n|--------|-------------|\n| npm run dev | Starts development server with hot reload |\n| npm run build | Compiles TypeScript to JavaScript |\n| npm start | Runs the compiled build |\n| npm run db:push | Pushes schema changes to database |\n| npm run db:studio | Opens Prisma Studio for database management |\n| npm run db:pull | Pulls database schema into Prisma schema |\n| npm run db:migrate | Creates a new migration |\n\n## Environment Variables\n\n| Variable | Description | Default |\n|----------|-------------|---------|\n| PORT | Server port | 5001 |\n| DATABASE_URL | PostgreSQL connection string | (required) |\n\n## Database Schema\n\nEdit `prisma/schema.prisma` to define your database models. Example:\n\n```prisma\nmodel User {\n  id        String   @id @default(cuid())\n  email     String   @unique\n  name      String\n  createdAt DateTime @default(now())\n  updatedAt DateTime @updatedAt\n}\n```\n\nAfter editing the schema, run:\n```bash\nnpx prisma migrate dev --name add_user_model\n```\n\n## API Routes\n\nBase route: `/api`\n\nDefault route: `/` - Health check\n\nAuth routes can be added in `src/core/auth/auth.routes.ts`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fricky-ultimate%2Fexpress-backend-starter-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fricky-ultimate%2Fexpress-backend-starter-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fricky-ultimate%2Fexpress-backend-starter-template/lists"}