{"id":24489741,"url":"https://github.com/stanmattingly/fullstack-typescript-mono-repo","last_synced_at":"2026-03-12T17:31:36.274Z","repository":{"id":269218199,"uuid":"906742196","full_name":"stanmattingly/fullstack-typescript-mono-repo","owner":"stanmattingly","description":"Ready-for-dev Typescript Monorepo with a dockerized frontend, backend, database \u0026 local aws","archived":false,"fork":false,"pushed_at":"2024-12-24T05:41:16.000Z","size":529,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-03T08:48:47.494Z","etag":null,"topics":["boilerplate","express","fullstack","js","monorepo","postgres","react","typscript"],"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/stanmattingly.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}},"created_at":"2024-12-21T19:11:57.000Z","updated_at":"2025-01-12T23:00:49.000Z","dependencies_parsed_at":"2024-12-21T21:22:12.985Z","dependency_job_id":"e64957d5-b17d-46eb-b587-2785c95aea89","html_url":"https://github.com/stanmattingly/fullstack-typescript-mono-repo","commit_stats":null,"previous_names":["stanmattingly/fullstack-typescript-mono-repo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stanmattingly/fullstack-typescript-mono-repo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stanmattingly%2Ffullstack-typescript-mono-repo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stanmattingly%2Ffullstack-typescript-mono-repo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stanmattingly%2Ffullstack-typescript-mono-repo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stanmattingly%2Ffullstack-typescript-mono-repo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stanmattingly","download_url":"https://codeload.github.com/stanmattingly/fullstack-typescript-mono-repo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stanmattingly%2Ffullstack-typescript-mono-repo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30435159,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T14:34:45.044Z","status":"ssl_error","status_checked_at":"2026-03-12T14:09:33.793Z","response_time":114,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["boilerplate","express","fullstack","js","monorepo","postgres","react","typscript"],"created_at":"2025-01-21T17:15:42.622Z","updated_at":"2026-03-12T17:31:36.237Z","avatar_url":"https://github.com/stanmattingly.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fullstack TypeScript Monorepo\n\nAn immediately runnable fullstack TypeScript application using React, Express, PostgreSQL, and AWS services (via LocalStack). This project is designed to provide a modern monorepo setup with seamless developer experience and pre-configured services to kickstart development.\n\n## Features\n\n- **Frontend**: React application running on `localhost:3000`.\n- **Backend**: Express application running on `localhost:8000`.\n- **Database**: PostgreSQL with pre-configured development database.\n- **Knex**: Uses Knex for migrations and db interactions.\n- **AWS Services**: LocalStack setup for S3 and SQS and anything else!\n- **Monorepo Setup**: Shared codebase and workspace-ready structure.\n- **Dockerized Development**: Fully containerized environment for easy setup and isolation.\n- **Makefile Commands**: Simplified project management with pre-defined tasks for setup, migrations, and more.\n\n## Prerequisites\n\nMake sure you have the following installed:\n\n- [Docker](https://www.docker.com/)\n- [Docker Compose](https://docs.docker.com/compose/)\n- [Node.js](https://nodejs.org/) (if running scripts outside of containers)\n- [Make](https://www.gnu.org/software/make/) (optional but recommended for using the Makefile)\n\n## Getting Started\n\n### Clone the Repository\n\n```bash\ngit clone https://github.com/your-username/fullstack-typescript-mono-repo.git\ncd fullstack-typescript-mono-repo\n```\n\n### Start the Project\n\nBuild and start all services:\n\n```bash\nmake all\n```\n\nVisit:\n- Frontend: [http://localhost:3000](http://localhost:3000)\n- Backend: [http://localhost:8000](http://localhost:8000)\n\n### Stop the Project\n\nStop all services:\n\n```bash\nmake down\n```\n\nStop and remove volumes:\n\n```bash\nmake down-v\n```\n\n### Install Dependencies\n\nInstall frontend dependencies:\n\n```bash\nmake install-frontend\n```\n\nInstall backend dependencies:\n\n```bash\nmake install-backend\n```\n\n### Rebuild Containers\n\nRebuild all containers:\n\n```bash\nmake build\n```\n\nRebuild without cache:\n\n```bash\nmake build-no-cache\n```\n\nRebuild only the frontend:\n\n```bash\nmake build-frontend\n```\n\nRebuild only the backend:\n\n```bash\nmake build-backend\n```\n\n## Database Management\n\n### Run Migrations\n\nApply database migrations:\n\n```bash\nmake migrate\n```\n\n### Seed the Database\n\nSeed the database with initial data:\n\n```bash\nmake seed\n```\n\n### Reset the Database\n\nDrop and recreate the database, then re-run migrations and seeds:\n\n```bash\nmake reset\n```\n\n### Create a New Migration\n\nTo create a new migration file, use the following command:\n\n```bash\nmake migration name=your_migration_name\n```\n\n## Project Structure\n\n```plaintext\n.\n├── docker/                 # Dockerfiles for base, backend, and frontend\n├── packages/               # Application source code\n│   ├── backend/            # Backend services (Express API)\n│   └── frontend/           # Frontend application (React)\n│   └── shared/             # Shared package for types, utils etc...   \n├── Makefile                # Commands for managing the project\n├── docker-compose.yml      # Docker Compose configuration\n└── README.md               # Documentation (you're reading this!)\n```\n\n## Environment Variables\n\nThe project comes with default environment variables pre-configured in the `docker-compose.yml`. Update these values as needed for your development environment:\n\n### Backend\n\n- `NODE_ENV`: Set to `development`.\n- `DATABASE_URL`: Connection string for PostgreSQL.\n- `AWS_ENDPOINT`: LocalStack endpoint.\n- `AWS_REGION`: AWS region (default: `us-east-1`).\n- `AWS_ACCESS_KEY_ID`: AWS access key (default: `test`).\n- `AWS_SECRET_ACCESS_KEY`: AWS secret key (default: `test`).\n- `S3_BUCKET_NAME`: Name of the S3 bucket.\n- `DB_USER`, `DB_PASS`, `DB_NAME`, `DB_HOST`: PostgreSQL credentials.\n\n### Frontend\n\n- `NODE_ENV`: Set to `development`.\n\n## LocalStack Configuration\n\nLocalStack is used to emulate AWS services. Currently, the following services are enabled:\n\n- **S3**: For object storage.\n- **SQS**: For message queuing.\n\nHealth checks ensure that required resources (e.g., S3 buckets and SQS queues) are ready before the backend starts.\n\n## Troubleshooting\n\n### Containers Are Not Running\n\nIf a specific container is not running, you can start it individually:\n\n```bash\nmake check_and_start_container NAME=container_name\n```\n\nReplace `container_name` with the name of the container (e.g., `backend`, `frontend`, `postgres`).\n\n### Logs\n\nView logs for a specific container:\n\n```bash\ndocker-compose logs container_name\n```\n\nView logs for all containers:\n\n```bash\ndocker-compose logs -f\n```\n\n## Contributing\n\nContributions are welcome! Feel free to open issues or submit pull requests.\n\n## License\n\nThis project is licensed under the MIT License. See the `LICENSE` file for details.\n\n---\n\nHappy coding! 🚀\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstanmattingly%2Ffullstack-typescript-mono-repo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstanmattingly%2Ffullstack-typescript-mono-repo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstanmattingly%2Ffullstack-typescript-mono-repo/lists"}