{"id":20065697,"url":"https://github.com/eloi-perez/simple-content-editor","last_synced_at":"2025-05-05T18:31:57.661Z","repository":{"id":44402973,"uuid":"429233196","full_name":"Eloi-Perez/simple-content-editor","owner":"Eloi-Perez","description":"Editor.js integration for Next.js","archived":false,"fork":false,"pushed_at":"2022-11-03T19:51:22.000Z","size":206,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-03-10T14:17:21.429Z","etag":null,"topics":["editorjs","nextjs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/Eloi-Perez.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}},"created_at":"2021-11-17T23:33:22.000Z","updated_at":"2023-01-01T17:04:49.000Z","dependencies_parsed_at":"2023-01-20T23:00:39.696Z","dependency_job_id":null,"html_url":"https://github.com/Eloi-Perez/simple-content-editor","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eloi-Perez%2Fsimple-content-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eloi-Perez%2Fsimple-content-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eloi-Perez%2Fsimple-content-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eloi-Perez%2Fsimple-content-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Eloi-Perez","download_url":"https://codeload.github.com/Eloi-Perez/simple-content-editor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224460848,"owners_count":17315111,"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":["editorjs","nextjs"],"created_at":"2024-11-13T13:52:03.335Z","updated_at":"2024-11-13T13:52:04.270Z","avatar_url":"https://github.com/Eloi-Perez.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Content Editor\n\nSCE is a [Next.js](https://nextjs.org/) project where the admin can edit the content of the pages directly in the browser using [Editor.js](https://editorjs.io/)\n\nThis project uses Static Generation so the HTML is generated at build time and will be reused on each request.\nAlso, it will be regenerated with each change of the content.\n\nIn addition, it uses Server-side Rendering for the edit pages so the HTML is generated on each request as an admin.\n\n\n\n## Getting Started\n\nFirst, you need to create some files not included in this repository.\n\n* In the root folder, create '.env.local' with the entries:\n\n  DB_USER=admin_user\n\n  DB_PASS=admin_password\n  \n  IRON_SECRET=32_characters_long_private_key_to_encrypt_cookies\n  \n\n* Now in the 'data' folder, add a .json file for each of the editable pages included (atm it will be about.json and index.json)\nThe content of these files should be in a readable format by editor.js, this is an example you can use to bootstrap your application:\n\n  `{\n    \"time\": 1637196257931,\n    \"blocks\": [\n        {\n            \"id\": \"KOigsjrDCs\",\n            \"type\": \"header\",\n            \"data\": {\n                \"text\": \"Welcome\",\n                \"level\": 2\n            }\n        }\n    ],\n    \"version\": \"2.22.2\"\n}`\n\nThen install all dependencies:\n\n```bash\nnpm install\n```\n\nNow you can run the development server:\n\n```bash\nnpm run dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feloi-perez%2Fsimple-content-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feloi-perez%2Fsimple-content-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feloi-perez%2Fsimple-content-editor/lists"}