{"id":16363973,"url":"https://github.com/adevinwild/micro-express","last_synced_at":"2025-10-26T05:31:24.953Z","repository":{"id":196195837,"uuid":"691763257","full_name":"adevinwild/micro-express","owner":"adevinwild","description":"Opinionated micro Express.js template to build robust REST APIs.","archived":false,"fork":false,"pushed_at":"2023-09-22T06:56:32.000Z","size":127,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"develop","last_synced_at":"2025-02-05T22:59:14.802Z","etag":null,"topics":["awilix","boilerplate","demo","example","express-js","jest","micro-express","nodemon","nodemon-express","postgres","postgresql","repository-pattern","robust","template","typeorm","typescript","winston"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/adevinwild.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}},"created_at":"2023-09-14T20:51:00.000Z","updated_at":"2024-12-05T19:04:44.000Z","dependencies_parsed_at":"2023-09-22T23:42:16.625Z","dependency_job_id":null,"html_url":"https://github.com/adevinwild/micro-express","commit_stats":null,"previous_names":["adevinwild/micro-express"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adevinwild%2Fmicro-express","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adevinwild%2Fmicro-express/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adevinwild%2Fmicro-express/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adevinwild%2Fmicro-express/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adevinwild","download_url":"https://codeload.github.com/adevinwild/micro-express/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238264781,"owners_count":19443411,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["awilix","boilerplate","demo","example","express-js","jest","micro-express","nodemon","nodemon-express","postgres","postgresql","repository-pattern","robust","template","typeorm","typescript","winston"],"created_at":"2024-10-11T02:29:01.959Z","updated_at":"2025-10-26T05:31:19.649Z","avatar_url":"https://github.com/adevinwild.png","language":"TypeScript","readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"./.r/micro-express-square.png\" width=\"256\" height=\"256\"\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003e\n    μExpress\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n    Oppinionated micro Express.js template to build robust REST APIs.\n\u003c/p\u003e\n\nμExpress is a streamlined Express.js template tailored for crafting robust REST APIs. With a curated set of tools and libraries, it accelerates development while offering flexibility for project-specific adjustments.\n\n## 🌟 Highlights\n\n-   **TypeScript Integration**: Benefit from static type checking and enhanced code intelligence.\n-   **Code Quality**: Enforced with ESLint and Prettier.\n-   **Express.js**: Utilizing the minimalist and fast Express.js framework.\n-   **Rich Logging**: With Winston.\n-   **CORS Ready**: Using the CORS middleware.\n-   **Request Parsing**: Via Body Parser.\n-   **Database \u0026 ORM**: TypeORM with Postgres support, containerized with Docker.\n-   **Testing**: Dependency injection with Awilix and testing via Jest.\n\n## 📂 Project Structure\n\n```bash\nsrc/\n├── api/             # API endpoints, middlewares, and routes.\n│   ├── middlewares/\n│   └── routes/\n├── loaders/         # Global logic: API routes, middlewares, DB, and Awilix container.\n├── migrations/      # Database migrations.\n├── models/          # TypeORM entities.\n├── repositories/    # Data access layers.\n├── services/        # Business logic.\n├── types/           # TypeScript type definitions.\n└── utils/           # Utility functions.\n```\n\n## 🚀 Getting Started\n\n#### 1. Clone :\n\n```bash\ngit clone https://github.com/adevinwild/micro-express.git\n```\n\n#### 2. Install Dependencies:\n\n```\nnpm install\n```\n\n#### 3. Database Setup:\n\n\u003e For this demo, we have already one migration file that creates a `dummy` table with an `id` column.\n\n-   Start with Docker :\n\n```bash\ndocker-compose up --build\n```\n\n-   Apply migrations :\n\n```bash\nnpm run migration:up\n```\n\n#### 4. Run Application:\n\n-   Development :\n\n```bash\nnpm run dev\n```\n\n-   Production :\n\n```bash\nnpm run build \u0026\u0026 npm start\n```\n\n## 🛠️ Scripts Overview\n\n-   `build`: Transpile TypeScript code.\n-   `start`: Launch the built application.\n-   `dev`: Development server with nodemon.\n-   `format`: Beautify code with ESLint \u0026 Prettier.\n-   `lint`: Check code quality with ESLint.\n-   `test`: Execute tests using Jest.\n\n## Happy coding! 🎉\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadevinwild%2Fmicro-express","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadevinwild%2Fmicro-express","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadevinwild%2Fmicro-express/lists"}