{"id":19023231,"url":"https://github.com/phildl/owl2-javascript-project-starter","last_synced_at":"2025-09-05T19:40:14.724Z","repository":{"id":100809137,"uuid":"600084958","full_name":"PhilDL/OWL2-JavaScript-Project-Starter","owner":"PhilDL","description":null,"archived":false,"fork":false,"pushed_at":"2023-02-10T14:52:09.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-02T01:21:37.474Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PhilDL.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}},"created_at":"2023-02-10T14:51:41.000Z","updated_at":"2023-02-10T14:52:14.000Z","dependencies_parsed_at":"2023-06-10T04:15:39.618Z","dependency_job_id":null,"html_url":"https://github.com/PhilDL/OWL2-JavaScript-Project-Starter","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/PhilDL%2FOWL2-JavaScript-Project-Starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhilDL%2FOWL2-JavaScript-Project-Starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhilDL%2FOWL2-JavaScript-Project-Starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhilDL%2FOWL2-JavaScript-Project-Starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PhilDL","download_url":"https://codeload.github.com/PhilDL/OWL2-JavaScript-Project-Starter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240072070,"owners_count":19743527,"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-11-08T20:29:09.969Z","updated_at":"2025-02-21T18:42:46.291Z","avatar_url":"https://github.com/PhilDL.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OWL 2 Javascript Project Starter\n\nThis repo is an example on how to start a real project with the Odoo OWL framework in version 2.\n\n\n[![Deploy on Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/Coding-Dodo/OWL2-JavaScript-Project-Starter)\n\n## Features\n\n- [OWL](https://github.com/odoo/owl) v2.0.5\n- Javascript\n- Vite\n- TailwindCSS\n\n## Installation\n\n[This repo is a \"template repository\". It means you can quickly create repositories based on this one, without it being a fork.](https://docs.github.com/en/free-pro-team@latest/github/creating-cloning-and-archiving-repositories/creating-a-repository-from-a-template#about-repository-templates)\n\nOtherwise, you may clone it:\n\n```bash\ngit clone https://github.com/Coding-Dodo/OWL2-JavaScript-Project-Starter.git\n```\n\nInstall dependencies:\n\n```bash\npnpm i\n```\n\nDev with HMR:\n\n```bash\npnpm dev\n```\n\nProduction build\n\n```bash\npnpm build\n```\n\nPreview Production build\n\n```bash\npnpm preview\n```\n\nRun tests\n\n```bash\npnpm test\n```\n\n## Components\n\nIt is expected to create components in one file, following this convention:\n\n```js\nimport { Component, useState, tags } from \"@odoo/owl\";\n\nconst APP_TEMPLATE = tags.xml/*xml*/ `\n\u003cdiv t-name=\"App\" class=\"\" t-on-click=\"update\"\u003e\n  Hello \u003ct t-esc=\"state.text\"/\u003e\n\u003c/div\u003e\n`;\n\nexport class App extends Component {\n  static template = APP_TEMPLATE;\n  state = useState({ text: \"Owl\" });\n  update() {\n    this.state.text = this.state.text === \"Owl\" ? \"World\" : \"Owl\";\n  }\n}\n```\n\n## See also\n\nIf your are searching for OWL version 1 project starter with Tailwind and PostCSS:\n\n[https://github.com/Coding-Dodo/OWL-JavaScript-Tailwind-Project-Starter](https://github.com/Coding-Dodo/OWL-JavaScript-Tailwind-Project-Starter)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphildl%2Fowl2-javascript-project-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphildl%2Fowl2-javascript-project-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphildl%2Fowl2-javascript-project-starter/lists"}