{"id":18067543,"url":"https://github.com/lependu/marko-boilerplate","last_synced_at":"2026-05-18T17:06:29.146Z","repository":{"id":90530325,"uuid":"108875411","full_name":"lependu/marko-boilerplate","owner":"lependu","description":"Demo with marko-starter marko-client and Docker ","archived":false,"fork":false,"pushed_at":"2017-11-08T12:46:08.000Z","size":265,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-09T13:06:57.289Z","etag":null,"topics":["docker-image","marko-starter","markojs","mocha-tests","nodejs"],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/lependu.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-10-30T16:07:30.000Z","updated_at":"2018-02-19T19:53:15.000Z","dependencies_parsed_at":"2023-06-13T16:15:53.098Z","dependency_job_id":null,"html_url":"https://github.com/lependu/marko-boilerplate","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/lependu/marko-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lependu%2Fmarko-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lependu%2Fmarko-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lependu%2Fmarko-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lependu%2Fmarko-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lependu","download_url":"https://codeload.github.com/lependu/marko-boilerplate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lependu%2Fmarko-boilerplate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33184769,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["docker-image","marko-starter","markojs","mocha-tests","nodejs"],"created_at":"2024-10-31T07:09:41.378Z","updated_at":"2026-05-18T17:06:29.141Z","avatar_url":"https://github.com/lependu.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Marko Boilerplate\n\nThis repo demos how\n  - [`marko@4.5.6`](https://github.com/marko-js/marko)\n  - [`marko-starter@2.0.2`](https://github.com/marko-js/marko-starter)\n  - [`marko-cli@2.2.1`](https://github.com/marko-js/marko-cli)\n\nplays together.\nMinimal `lasso` config and few basic test with nyc coverage included.\n\n## Prepare\nYou need to ensure that chrome based mocha tests can run in your envitonment.\nFor start take a look at the [`puppeteer`](https://github.com/GoogleChrome/puppeteer) project.\n\nTested with `node:8.8.1-slim` docker based docker image on `debian 8.9` host. `Dockerfile` included.\n\n1. Clone the repo `$ git clone https://github.com/lependu/marko-boilerplate`\n2. `$ cd marko-boilerplate`\n3. Build the container: `$ docker build -t [image-name] .`\n4. Install dependencies:\n`$ docker run -ti [--rm] -v $(pwd):/home/node/app -p [host-port]:8080 [image-name] -c \"npm install\"`\n5. Run the container:\n`$ docker run -ti [--rm] -v $(pwd):/home/node/app -p [host-port]:8080 [image-name] -c \"npm run [start|build|serve|lint|test]\"`\n\nBe advised that the image size is ~ 600Mb + it will take ~400Mb more in the `./node_modules` after install.\n\nI am not intend to test it in Windows or Mac environments, but any PR appreciated.\n\n\n## Starting the server\n\n```bash\n$ npm start\n```\n\nStart the server in production mode (minification enabled, etc.):\n\n```bash\n$ NODE_ENV=production npm start\n```\n\n## Build a static site\nBuild the project in production mode:\n\n```bash\n$ npm run build\n```\n\n## Tests\n```bash\n$ npm run lint\n```\nEslint\n\n```bash\n$ npm run test\n```\nTest with mocha.\n```bash\n$ npm run coverage\n```\nGenerates istanbul coverage report into `coverage` directory.\nFor further configuration take a look at the `.nycrc` file.\n\n## Known issues\n\n### Handling click() events in tests\nI could not make `Element.click()` test to work. I guess it is related with\n[this](https://github.com/GoogleChrome/puppeteer/pull/1125) or\n[this](https://github.com/GoogleChrome/puppeteer/issues/1082)\npuppeteer issue. Any help appreciated.\n\n### Lasso incompability\nThe `marko-starter@2.x.x` has `lasso@3.0.0-beta.x` dependency,\n\nwhile `marko-cli@2.x.x` has `lassso@2.x.x` dependency.\n\nThats why we have to add `\"lasso\": \"*\"` in the `package.json`\n\n~~Which is a bit messy, but works...~~\n\nWhich works until you `$ npm i ...` something. After that you have to\n\n`$ npm i lasso@3.0.0-beta.x` before run `marko-starter` commands and\n\n`$ npm i lasso@2` before run tests.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flependu%2Fmarko-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flependu%2Fmarko-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flependu%2Fmarko-boilerplate/lists"}