{"id":22490751,"url":"https://github.com/derekwheee/pallies","last_synced_at":"2025-08-02T23:30:43.391Z","repository":{"id":36784546,"uuid":"227915650","full_name":"derekwheee/pallies","owner":"derekwheee","description":"hapi user management","archived":false,"fork":false,"pushed_at":"2024-05-15T20:13:09.000Z","size":2943,"stargazers_count":5,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2024-11-05T17:52:43.006Z","etag":null,"topics":["hapi","hapijs","user-management"],"latest_commit_sha":null,"homepage":"https://frxnz.github.io/pallies/","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/derekwheee.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-12-13T20:19:44.000Z","updated_at":"2024-09-21T02:16:26.000Z","dependencies_parsed_at":"2024-05-16T07:17:54.914Z","dependency_job_id":"aa75f56c-9adc-48cb-a37a-b849bb832d58","html_url":"https://github.com/derekwheee/pallies","commit_stats":{"total_commits":103,"total_committers":2,"mean_commits":51.5,"dds":0.009708737864077666,"last_synced_commit":"14e0efe3d69105edb214e785d3c29e109c596259"},"previous_names":["frxnz/pallies"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derekwheee%2Fpallies","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derekwheee%2Fpallies/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derekwheee%2Fpallies/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derekwheee%2Fpallies/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/derekwheee","download_url":"https://codeload.github.com/derekwheee/pallies/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228362085,"owners_count":17908186,"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":["hapi","hapijs","user-management"],"created_at":"2024-12-06T17:27:49.978Z","updated_at":"2024-12-06T17:27:50.506Z","avatar_url":"https://github.com/derekwheee.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pallies \n\n[![Build Status](https://travis-ci.org/frxnz/pallies.svg?branch=master)](https://travis-ci.org/frxnz/pallies)\n[![Coverage Status](https://coveralls.io/repos/github/frxnz/pallies/badge.svg?branch=master)](https://coveralls.io/github/frxnz/pallies?branch=master)\n\nPallies is a user management plugin for [hapi](https://hapi.dev/), designed to work best with\n[hapipal](https://github.com/hapipal).\n\n\n\n### Resources\n* [API documentation](https://frxnz.github.io/pallies/)\n\n### Features\n* Supports hapi v18+\n* Built-in support for user invite and forgot password tokens\n* Powerful configuration using [Confidence](https://github.com/hapijs/confidence)\n* Strong password encryption using [Argon2](https://www.npmjs.com/package/argon2)\n* Use any database supported by [Knex](http://knexjs.org/) and [Objection](https://vincit.github.io/objection.js/)\n\n### Getting Started\n\nThis guide assumes you've already created a hapi project using hpal\n\nLooking for a starting point? Check the [Pallies Demo Repo](https://github.com/frxnz/pallies-demo-api).\n\n#### Install the Pallies module from npm\n```bash\nnpm install --save pallies\n```\n\n#### Configure Pallies\nCreate a configuration file at `server/.palliesrc.js`\n\n[Example Pallies configuration](https://github.com/frxnz/pallies/blob/master/server/.palliesrc.js)\n\n#### Update Your Manifest\n\n```js\n// Register Pallies as a plugin in `lib/plugins/pallies.js\n'use strict';\n\nconst PalliesConfig = require('../../server/.palliesrc');\nconst User = require('../models/user');\n\nmodule.exports = (server, options) =\u003e ({\n    plugins: {\n        options: {\n            isDev : options.isDev,\n            ...PalliesConfig\n        }\n    }\n});\n```\n\n```js\n// Register Schwifty in server/manifest.js\n{\n    plugin: 'schwifty',\n    options: {\n        $filter: { $env: 'NODE_ENV' },\n        $default: {},\n        $base: {\n            migrateOnStart: true,\n            knex: {\n                client: 'pg',\n                connection: {\n                    host: { $env: 'DB_HOST' },\n                    user: { $env: 'DB_USER' },\n                    password: { $env: 'DB_PASSWORD' },\n                    database: { $env: 'DB_DATABASE' }\n                },\n                migrations: {\n                    stub: 'Schwifty.migrationsStubPath'\n                }\n            }\n        },\n        production: {\n            migrateOnStart: false\n        }\n    }\n}\n```\n\n#### Update `knexfile.js`\n\nAdd the Pallies migration directory to your migrations configuration\n\n```js\n// ...\nmigrations: {\n    directory: [\n        'node_modules/pallies/lib/migrations',\n        Path.relative(process.cwd(), PluginConfig.migrationsDir)\n    ]\n}\n//...\n```\n\n#### Apply database migrations\n```bash\nnpx knex migrate:latest\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderekwheee%2Fpallies","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderekwheee%2Fpallies","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderekwheee%2Fpallies/lists"}