{"id":14384735,"url":"https://github.com/Dramloc/preact-auth0-template","last_synced_at":"2025-08-23T17:33:33.193Z","repository":{"id":125810407,"uuid":"112000022","full_name":"Dramloc/preact-auth0-template","owner":"Dramloc","description":"A simple `preact-cli` template for auth0","archived":false,"fork":false,"pushed_at":"2018-05-13T16:26:31.000Z","size":188,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-29T18:35:40.388Z","etag":null,"topics":["auth0","preact","preact-cli"],"latest_commit_sha":null,"homepage":"https://preact-auth0.surge.sh/","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/Dramloc.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}},"created_at":"2017-11-25T11:56:28.000Z","updated_at":"2020-04-21T16:45:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"ebc30fb2-fe9a-476a-b134-2df8a2381356","html_url":"https://github.com/Dramloc/preact-auth0-template","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/Dramloc%2Fpreact-auth0-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dramloc%2Fpreact-auth0-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dramloc%2Fpreact-auth0-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dramloc%2Fpreact-auth0-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dramloc","download_url":"https://codeload.github.com/Dramloc/preact-auth0-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230716629,"owners_count":18269810,"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":["auth0","preact","preact-cli"],"created_at":"2024-08-28T18:01:37.454Z","updated_at":"2024-12-21T12:30:54.084Z","avatar_url":"https://github.com/Dramloc.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# preact-auth0-template\n\n## Documentation\n- This is a simple `preact-cli` template for [auth0](https://auth0.com/). Live demo is available [here](https://preact-auth0.surge.sh/).\n- [For Preact](https://preactjs.com/): General information about how to work with Preact, not specific to this template\n\n## Usage\n\n``` bash\n$ npm install -g preact-cli\n$ preact create dramloc/preact-auth0-template my-project\n$ cd my-project\n$ npm install\n$ npm run dev\n```\n\nDevelopment server runs on port `8080`. If the default port is already in use on your machine it will start the development server on a random port.\n\n## Commands\n\n- `npm run start`: Runs `serve` or `dev`, depending on `NODE_ENV` value. Defaults to `dev server`\n\n- `npm run dev`: Run a development, HMR server\n\n- `npm run serve`: Run a production-like server\n\n- `npm run build`: Production-ready build\n\n- `npm run lint`: Pass JavaScript files using ESLint\n\n- `npm run test`: Run Jest and [`preact-render-spy`](https://github.com/mzgoddard/preact-render-spy) for your tests\n\n### How to Test\n\nThe `default` template provides a basic test setup with Jest and [`preact-render-spy`](https://github.com/mzgoddard/preact-render-spy). You are free to change preact-render-spy with any other assertion library. The advantage of it is that it supports a similiar terminology and feature set as the Enzyme library for testing React applications.\n\nYou can run all additional Jest CLI commands with the `npm run test` command as described in the [Jest docs](https://facebook.github.io/jest/docs/en/cli.html#using-with-npm-scripts). For example, running jest in watch mode would be :\n\n- `npm run test -- --watch` instead of  `jest --watch `\n\n## Configuring auth0\n\n- Make sure `http://localhost:8080/callback` is an allowed callback URL for your auth0 client.\n- Edit `preact.config.js` and update `process.env.AUTH0_DOMAIN` and `process.env.AUTH0_CLIENT_ID` with your auth0 information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDramloc%2Fpreact-auth0-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FDramloc%2Fpreact-auth0-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDramloc%2Fpreact-auth0-template/lists"}