# @m8agency/cooper-users

> Users plugin for the Cooper API arch.

Latest version **0.0.5** (published 2018-05-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install @m8agency/cooper-users
pnpm add @m8agency/cooper-users
yarn add @m8agency/cooper-users
bun add @m8agency/cooper-users
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2018-05-28 |
| First published | 2018-05-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 17 |
| Unpacked size | 21.9 KB |
| Known vulnerabilities | 0 (+8 in 5 direct dependencies) |
| Install scripts | no |
| Author | Juan Miret |
| Maintainers | juanmiret.m8 |

## Links

- npm: https://www.npmjs.com/package/@m8agency/cooper-users
- npm.io page: https://npm.io/package/@m8agency/cooper-users

## Dependencies (17)

- [pg](https://npm.io/package/pg.md) ^7.4.3
- [joi](https://npm.io/package/joi.md) 13.x.x
- [boom](https://npm.io/package/boom.md) 7.x.x
- [code](https://npm.io/package/code.md) 5.x.x
- [glue](https://npm.io/package/glue.md) 5.x.x
- [hapi](https://npm.io/package/hapi.md) 17.x.x
- [hoek](https://npm.io/package/hoek.md) 5.x.x
- [tandy](https://npm.io/package/tandy.md) 1.0.x
- [dotenv](https://npm.io/package/dotenv.md) 4.x.x
- [schwifty](https://npm.io/package/schwifty.md) 4.0.x
- [db-errors](https://npm.io/package/db-errors.md) ^0.1.0
- [objection](https://npm.io/package/objection.md) 1.0.x
- [confidence](https://npm.io/package/confidence.md) 3.x.x
- [jsonwebtoken](https://npm.io/package/jsonwebtoken.md) ^8.2.0
- [haute-couture](https://npm.io/package/haute-couture.md) 3.x.x
- [hapi-auth-jwt2](https://npm.io/package/hapi-auth-jwt2.md) ^8.0.0
- [secure-password](https://npm.io/package/secure-password.md) ^3.0.0

## Recent versions

- 0.0.5 (latest) — 2018-05-28
- 0.0.4 — 2018-05-28
- 0.0.3 — 2018-05-28
- 0.0.2 — 2018-05-28
- 0.0.1 — 2018-05-28

## README

# User pal

A batteries included version of [hapi pal](https://github.com/hapipal/boilerplate/)

**Features**
 - Supports hapi v17+
 - Provides conventions for building plugins by mapping the entire hapi plugin API onto files and folders, using [haute-couture](https://github.com/hapipal/haute-couture/).
 - Integrated with [Objection ORM](https://github.com/Vincit/objection.js/) via [Schwifty](https://github.com/hapipal/schwifty/)
 - Configured to use PostgreSQL (NODE_ENV=development).
 - Swagger UI provides an easy interface to your API
 - Fully setup with a [lab](https://github.com/hapijs/lab) test suite and [eslint](https://github.com/eslint/eslint) configuration.
 - Up-to-date versions of all dependencies.
 - Supports hapi pal [Flavors](https://github.com/hapipal/boilerplate/#flavors) with the deployment, objection, and swagger flavors already included.

## Getting Started
```bash
$ git clone --depth=1 --origin=user-pal git@github.com:mattboutet/user-pal.git my-project
$ cd my-project
$ git checkout --orphan master # New branch without history
$ npm install
$ cp server/.env-keep server/.env
```

Open `.env` in your editor of choice and fill in the variables there.  If you'll be connecting to a PostgreSQL database, ensure that an empty database exists.

```bash
$ npm start
```

Open [http://0.0.0.0:4000/documentation](http://0.0.0.0:4000/documentation) (assuming you used port 4000 in your .env file) in a web browser to start using your api.

When you're ready to point this at your own Github repo and start committing:

```bash
$ git remote add origin git@github.com:my-username/my-project.git
$ npm init # Rename, reversion, describe your plugin
$ git commit -am "Building on top of the user pal boilerplate"
```

---
_Source: https://npm.io/package/@m8agency/cooper-users · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
