{"id":19471514,"url":"https://github.com/majorlift/typescript-fullstack-monorepo-starter","last_synced_at":"2025-04-25T12:31:03.104Z","repository":{"id":49502088,"uuid":"490490903","full_name":"MajorLift/typescript-fullstack-monorepo-starter","owner":"MajorLift","description":"TypeScript monorepo setup with blazing-fast HMR and fast refresh powered by swc, esbuild.","archived":false,"fork":false,"pushed_at":"2023-12-02T03:09:35.000Z","size":2719,"stargazers_count":26,"open_issues_count":4,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T21:23:17.368Z","etag":null,"topics":["boilerplate","docker-compose","esbuild","eslint","express-js","jest","monorepo","postgresql","prettier","react","react-testing-library","redux","rtk-query","swc","tailwind-css","typescript","webpack","yarn-workspaces"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MajorLift.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-05-10T00:44:48.000Z","updated_at":"2024-04-02T18:21:21.000Z","dependencies_parsed_at":"2024-11-10T19:01:50.678Z","dependency_job_id":null,"html_url":"https://github.com/MajorLift/typescript-fullstack-monorepo-starter","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MajorLift%2Ftypescript-fullstack-monorepo-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MajorLift%2Ftypescript-fullstack-monorepo-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MajorLift%2Ftypescript-fullstack-monorepo-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MajorLift%2Ftypescript-fullstack-monorepo-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MajorLift","download_url":"https://codeload.github.com/MajorLift/typescript-fullstack-monorepo-starter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250817562,"owners_count":21492173,"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":["boilerplate","docker-compose","esbuild","eslint","express-js","jest","monorepo","postgresql","prettier","react","react-testing-library","redux","rtk-query","swc","tailwind-css","typescript","webpack","yarn-workspaces"],"created_at":"2024-11-10T19:01:29.073Z","updated_at":"2025-04-25T12:31:02.432Z","avatar_url":"https://github.com/MajorLift.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TypeScript Fullstack Monorepo Starter\n\n- This project brings the blazing-fast DX of a **modern JS build system** to codebases reliant on *Webpack*. \n- It also implements a convenient monorepo setup that is extensible to any number of frontend clients or backend services.\n\n## Features\n\n### Speed Improvements\n- Transpilation: **`SWC`**\n    - [~60x speed improvement over `babel`, `tsc`. Better performance than `esbuild`.](https://swc.rs/docs/benchmarks)\n    - Supports HMR with `react-refresh` (unlike `esbuild-loader`).\n- Minification: **`ESBuild`**\n    - [10x+ performance compared to `swc`, `terser`.](https://github.com/privatenumber/minification-benchmarks)\n\n### Project structure\n  - Monorepo setup with `Yarn Workspaces`, TypeScript path aliases, `tsconfig-paths-plugin`\n  - React SPA, Express server, Redux state slices all organized as independent subrepos.\n  - Simple code sharing (types, constants, modules) between cross-platform frontend clients (mobile, electron) and backend services. \n\n## Stack \n- **Frontend**: `React`, `Redux Toolkit`, `RTK Query`, `Tailwind CSS`\n- **Backend**: `Express.js`, `ts-node`, `PostgreSQL`, `Docker Compose`\n- **Express middleware**: `express-rate-limit`, `express-slow-down`, `helmet`, `hpp`, `nocache`, `morgan`\n- **Build**: `Webpack`\n- **Linters**: `ESLint`, `Prettier`, `Headwind`, `TypeScript Import Sorter`\n- **Testing**: `Jest`, `React Testing Library`\n\n## Getting Started \n\n### Install\n\nClick the green `Use this Template` button on GitHub, or run this command.\n\n```bash\ngit clone --depth 1 https://github.com/MajorLift/typescript-fullstack-monorepo-starter\n```\n\nYarn is required to use this template.\n\n```bash\nnpm install --global yarn\n```\n\nDocker is used to launch the Postgres DB. Download it [here](https://docs.docker.com/engine/install/).\n\n### Scripts\n\n1. To run the project in dev mode, navigate to the project directory and run:\n```bash\nyarn dev\n```\n- This will concurrently spawn...\n  - The React app at [http://localhost:8080](http://localhost:8080)\n  - The Express server at [http://localhost:3000](http://localhost:3000)\n  - The Postgres DB at [http://localhost:5333](http://localhost:5333)\n\n2. To generate a production build\n```bash\nyarn build\n```\n\n3. To preview the production build with `ts-node` running on `nodemon`\n```bash\nyarn start\n```\n\n4. To clean up or reload the DB\n```bash\nyarn docker-clean\nyarn docker-reload\n```\n\n5. To run the linter\n```bash\nyarn lint\n```\n\n6. To run the test suite\n```bash\nyarn test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmajorlift%2Ftypescript-fullstack-monorepo-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmajorlift%2Ftypescript-fullstack-monorepo-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmajorlift%2Ftypescript-fullstack-monorepo-starter/lists"}