{"id":17137425,"url":"https://github.com/easingthemes/sketch2code","last_synced_at":"2025-08-01T10:31:13.508Z","repository":{"id":69597101,"uuid":"171840003","full_name":"easingthemes/sketch2code","owner":"easingthemes","description":null,"archived":false,"fork":false,"pushed_at":"2019-05-15T16:29:44.000Z","size":449,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T21:23:10.283Z","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/easingthemes.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":"2019-02-21T09:20:02.000Z","updated_at":"2019-05-15T16:29:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"2fcab22e-8e20-4556-907b-5e9a2927398d","html_url":"https://github.com/easingthemes/sketch2code","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easingthemes%2Fsketch2code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easingthemes%2Fsketch2code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easingthemes%2Fsketch2code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easingthemes%2Fsketch2code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/easingthemes","download_url":"https://codeload.github.com/easingthemes/sketch2code/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245224582,"owners_count":20580367,"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":"2024-10-14T20:07:00.882Z","updated_at":"2025-03-24T07:16:23.591Z","avatar_url":"https://github.com/easingthemes.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Requirements\nNodeJS v8+ https://nodejs.org/en/download/\n\n# Get code\n```\ngit clone https://github.com/easingthemes/sketch2code.git\n```\n\n# CD into project dir\n```\ncd sketch2code\n```\n\n# Install dependencies\n```\nnpm install\n```\n\n# Start https server\n```\nnpm run debug\n```\n\n# Start Mock server for testing only!\n```\nnpm run mock\n```\n\n# 0 Config\n\nUpdate env vars in debug task:\n```\nAEM_USER\nAEM_PASS\nAEM_DOMAIN\nAEM_PATH\nAEM_WCMMODE\nML_API\n```\n\n# URL local:\n\nLocal:\nhttps://localhost/3000\n\nUse IP instead `localhost` to test it cross devices.\n\n# Remote URL:\nhttps://sketch2code-web.herokuapp.com\n\n# 1. Open Camera\n\n1.1. Open homepage with custom hash, eg:\n```\nURL/#1\n```\n\n1.2. Click on `Start Broadcast` button.\n\n1.3. Allow Camera usage.\n\n1.4. You should see camera stream with grid on top.\n\n# 2. Open Presentation\n\n2.1. Open homepage with same custom hash as on Camera. eg:\n```\nURL/#1\n```\nWait a bit to find broadcaster.\n\n2.2. Click `Connect to: nc-summit19` on Iphone demo image.\n\nWait for connection.\n\n2.3. You should see remote camera stream on Iphone demo image, and local AEM on Chrome demo image.\nOn first visit You need to click `Load unsafe scripts` in Chrome bar on the right. Reload page and repeat step 2.2\n\n2.4. Click on Iphone home button to take a picture from remote Camera\n\n2.5 You should see processing loader.\n\n2.6 Once processing is done, animation will stop and AEM instance in Chrome demo image (iframe) will reload.\n\n\n# 3. Sample images for training\n\nIf you need only sample images, use instruction from Step #1, and \n\n1.5. Click on `Take photo` button to get photos from Camera directly.\n\n!! Images in this app are not saved anywhere.\nYou need to save them manually.\nDB is disconnected for testing purposes.\n\n\n# 4. Heroku\n\nCode is in Github repo: https://github.com/easingthemes/sketch2code\n\nApp name: `sketch2code-web`\n\nHeroku CI is configured for auto deploy after changes to `master` branch of Github repo.\nYou can also do manual deployment in Heroku admin panel.\nDeployment logs are visible in Heroku admin panel.\n\nServer logs can be accessed with:\n```\nheroku logs --tail --app sketch2code-web\n```\nMore info: https://devcenter.heroku.com/articles/logging\nYou need to login to Heroku Cli https://devcenter.heroku.com/articles/heroku-cli\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasingthemes%2Fsketch2code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feasingthemes%2Fsketch2code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasingthemes%2Fsketch2code/lists"}