{"id":24874751,"url":"https://github.com/dirheimerb/divided-house-mono","last_synced_at":"2025-03-27T02:16:03.591Z","repository":{"id":105233656,"uuid":"574492274","full_name":"dirheimerb/divided-house-mono","owner":"dirheimerb","description":null,"archived":false,"fork":false,"pushed_at":"2023-02-04T20:09:34.000Z","size":1733,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T07:28:59.840Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/dirheimerb.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":"2022-12-05T12:39:22.000Z","updated_at":"2022-12-05T12:39:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"fb108001-ad1c-4a61-b250-049421cc7589","html_url":"https://github.com/dirheimerb/divided-house-mono","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"Elvincth/turbo-strapi-nextjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dirheimerb%2Fdivided-house-mono","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dirheimerb%2Fdivided-house-mono/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dirheimerb%2Fdivided-house-mono/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dirheimerb%2Fdivided-house-mono/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dirheimerb","download_url":"https://codeload.github.com/dirheimerb/divided-house-mono/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245767360,"owners_count":20668826,"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":[],"created_at":"2025-02-01T07:28:19.012Z","updated_at":"2025-03-27T02:16:03.585Z","avatar_url":"https://github.com/dirheimerb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://user-images.githubusercontent.com/6602723/147492045-644eb08a-a933-42bf-bf30-1485db455da3.png\" width=\"150\"\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eTurborepo + Strapi + Next.js + Docker\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003eA Turborepo with Strapi v4 (w/ postgres database) + Next.js powered by docker and docker-compose.\u003c/h1\u003e\n\n## ⚠️ Prerequisites\n\n\nPlease make sure you have Docker and docker-compose installed in your machine. Please refer here to install them :\n\n1. [Docker](https://docs.docker.com/engine/install/) installation\n2. [Docker compose](https://docs.docker.com/compose/install/) installation\n\n## Getting Started\n\n1. Clone this repository :\n\n```bash\ngit clone https://github.com/Elvincth/turbo-strapi-nextjs\n```\n\n2. Change directory\n\n```bash\ncd turbo-strapi-nextjs\n```\n\n### Setup strapi configuration (`.env`) :\n\n3. Change directory to our strapi application\n\n```bash\ncd apps/backend\n```\n\n4. Create a .env file which stores strapi and postgres configuration, based on the .env.example file:\n\n```bash\ncp .env.example .env\n```\n\n5. Define the admin JWT Token\n\n   \u003e In order to make the admin login work you need to define the secret you want to use in `.env` file\n\nGenerate a secure token:\n\n```bash\nopenssl rand 64 | base64 # (linux/macOS users)\n# or\nnode -e \"console.log(require('crypto').randomBytes(64).toString('base64'))\" # (all users)\n```\n\nAdd it to your env variables (`apps/backend/.env`):\n\n```bash\nADMIN_JWT_SECRET=token_generated_above\n```\n\n## Develop\n\nTo develop all apps and packages, run the following command (in the project root):\n\n```bash\ndocker-compose up -d\n```\n\n## Build\n\nTo build all apps and packages, run the following commands:\n\n```bash\ndocker exec -it strapi_nextjs_turbo /bin/sh\n```\n\nThen run:\n\n```bash\nyarn build\n```\n\n## What's inside?\n\nThis turborepo uses [Yarn](https://classic.yarnpkg.com/lang/en/) as a package manager. It includes the following packages/apps:\n\n### Apps and Packages\n\n- `frontend`: a [Next.js](https://nextjs.org) app\n- `backend`: [Strapi](https://strapi.io/) app\n- `ui`: a stub React component library currently used by `frontend` application\n- `config`: `eslint` configurations (includes `eslint-config-next` and `eslint-config-prettier`)\n- `tsconfig`: `tsconfig.json`s used throughout the monorepo\n\n### Utilities\n\nThis turborepo has some additional tools already setup for you:\n\n- [TypeScript](https://www.typescriptlang.org/) for static type checking\n- [ESLint](https://eslint.org/) for code linting\n- [Jest](https://jestjs.io) test runner for all things JavaScript\n- [Prettier](https://prettier.io) for code formatting\n\n### Remote Caching\n\nTurborepo can use a technique known as [Remote Caching (Beta)](https://turborepo.org/docs/features/remote-caching) to share cache artifacts across machines, enabling you to share build caches with your team and CI/CD pipelines.\n\nBy default, Turborepo will cache locally. To enable Remote Caching (Beta) you will need an account with Vercel. If you don't have an account you can [create one](https://vercel.com/signup), then enter the following commands:\n\n```bash\ndocker exec -it strapi_nextjs_turbo /bin/sh\n```\n\n```\nnpx turbo login\n```\n\nThis will authenticate the Turborepo CLI with your [Vercel account](https://vercel.com/docs/concepts/personal-accounts/overview).\n\nNext, you can link your Turborepo to your Remote Cache by running the following command from the root of your turborepo:\n\n```\nnpx turbo link\n```\n\n## Useful Links\n\nLearn more about the power of Turborepo:\n\n- [Pipelines](https://turborepo.org/docs/features/pipelines)\n- [Caching](https://turborepo.org/docs/features/caching)\n- [Remote Caching (Beta)](https://turborepo.org/docs/features/remote-caching)\n- [Scoped Tasks](https://turborepo.org/docs/features/scopes)\n- [Configuration Options](https://turborepo.org/docs/reference/configuration)\n- [CLI Usage](https://turborepo.org/docs/reference/command-line-reference)\n\n## Credits\n\n- [strapi-dockerize](https://github.com/kevinadhiguna/strapi-dockerize)\n- [nextjs-strapi-boilerplate](https://github.com/kevinadhiguna/strapi-dockerize)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdirheimerb%2Fdivided-house-mono","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdirheimerb%2Fdivided-house-mono","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdirheimerb%2Fdivided-house-mono/lists"}