{"id":22160667,"url":"https://github.com/nerkarso/directus-template","last_synced_at":"2026-03-19T22:02:03.236Z","repository":{"id":233049304,"uuid":"626175067","full_name":"nerkarso/directus-template","owner":"nerkarso","description":"Template of Directus to accelerate setup time","archived":false,"fork":false,"pushed_at":"2024-04-12T21:19:35.000Z","size":208,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-29T20:35:38.482Z","etag":null,"topics":["directus"],"latest_commit_sha":null,"homepage":"","language":null,"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/nerkarso.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":"2023-04-11T00:27:35.000Z","updated_at":"2024-04-22T21:24:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"29abd839-31a4-4a80-bfb5-e872c3138304","html_url":"https://github.com/nerkarso/directus-template","commit_stats":null,"previous_names":["nerkarso/directus-template"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerkarso%2Fdirectus-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerkarso%2Fdirectus-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerkarso%2Fdirectus-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerkarso%2Fdirectus-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nerkarso","download_url":"https://codeload.github.com/nerkarso/directus-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245294937,"owners_count":20591952,"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":["directus"],"created_at":"2024-12-02T04:09:12.351Z","updated_at":"2026-01-05T10:42:59.340Z","avatar_url":"https://github.com/nerkarso.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003cimg alt=\"Directus Logo\" src=\"https://user-images.githubusercontent.com/522079/158864859-0fbeae62-9d7a-4619-b35e-f8fa5f68e0c8.png\"\u003e\u003c/p\u003e\n\n## Requirements\n\n- Node.js `v18.x`\n- pnpm `v8.x`\n- MySQL `v2.x`\n\n## Getting Started\n\n1. Install Node.js dependencies:\n\n```sh\npnpm install\n```\n\n2. Create a copy of the `.env.example` file and rename it to `.env`.\n3. Generate app key and secret:\n\n```sh\npnpm security\n```\n\n4. Assign the generated strings to the key and secret variable inside the `.env` file.\n5. If you're using MySQL:\n   1. Create a fresh new database.\n   2. Change the database credentials in the `.env` file.\n6. Bootstrap the database:\n\n```sh\npnpm bootstrap\n```\n\n8. Start Directus:\n\n```sh\npnpm start\n```\n\n9. Open http://localhost:8055 in your browser.\n10. Log in with the credentials of `ADMIN_EMAIL` and `ADMIN_PASSWORD` found at the end of the `.env` file.\n\n## Directus Commands\n\n### Run an instance\n\n```sh\npnpm start\n```\n\n### Initialize the database\n\nEither install the database (if it's empty) or migrate it to the latest version (if it already exists and has missing migrations).\n\n```sh\npnpm bootstrap\n```\n\n### Update the database\n\n```sh\npnpm migrate\n```\n\n### Generate app key and secret\n\n```sh\nnpx directus security key:generate\nnpx directus security secret:generate\n```\n\nCopy and paste the output in your `.env` file.\n\n## Deployment\n\n\u003e Tip: If you're using Directus in production, it's recommended to lock the version of Directus in your package.json because things might break when this package gets updated.\n\nExample:\n```diff\n\"dependencies\": {\n-  \"directus\": \"^10.0.0\"\n+  \"directus\": \"10.0.0\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnerkarso%2Fdirectus-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnerkarso%2Fdirectus-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnerkarso%2Fdirectus-template/lists"}