<commit_before># Punchcard CMS [![Build Status](https://travis-ci.org/punchcard-cms/punchcard.svg?branch=master)](https://travis-ci.org/punchcard-cms/punchcard) [![Coverage Status](https://coveralls.io/repos/github/punchcard-cms/punchcard/badge.svg?branch=master)](https://coveralls.io/github/punchcard-cms/punchcard?branch=master) [![Code Climate](https://codeclimate.com/github/punchcard-cms/punchcard/badges/gpa.svg)](https://codeclimate.com/github/punchcard-cms/punchcard)

Headless Content Management System designed with content strategy at its heart. Built with Node.

## Install and Usage

```bash
npm i punchcard-cms --save
```

```javascript
const punchcard = require('punchcard');

punchcard().then(app => {
  app.listen(8080);
})
```

## Developing Locally

Make sure PostgresSQL is set up locally (see below)

Run the following to run both the database and get the server running:

```bash
$ npm run dev
```

## Setting up PostgreSQL locally

1. Make sure you have homebrew installed
`/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"`
2. `brew update`
3. `brew install postgres`
4. type this to start the postgres server `postgres -D /usr/local/var/postgres`
5. open new terminal tab
6.` createuser punchcard -P` (it'll prompt for a password) use `<PASSWORD>`
7. `createdb -O punchcard punchcard`
8. reconnect to psql as new user `psql -d punchcard -U punchcard`
9. connect to db `\connect punchcard`

Once you are connected you should be able to use psql cli syntax to check tables.
* `\d+` checks table relations
* `\l` lists all available databases
* `select * from "database_name";` Displays all rows in database, replacing database_name with the table you want to see.
* list all tables for user punchcard: `\c punchcard \dt`

<commit_msg>:memo: Add link to latest release<commit_after># Punchcard CMS [![Build Status](https://travis-ci.org/punchcard-cms/punchcard.svg?branch=master)](https://travis-ci.org/punchcard-cms/punchcard) [![Coverage Status](https://coveralls.io/repos/github/punchcard-cms/punchcard/badge.svg?branch=master)](https://coveralls.io/github/punchcard-cms/punchcard?branch=master) [![Code Climate](https://codeclimate.com/github/punchcard-cms/punchcard/badges/gpa.svg)](https://codeclimate.com/github/punchcard-cms/punchcard)

Headless Content Management System designed with content strategy at its heart. Built with Node.

## Install and Usage

```bash
npm i punchcard-cms --save
```

```javascript
const punchcard = require('punchcard');

punchcard().then(app => {
  app.listen(8080);
})
```

## Developing Locally

Make sure PostgresSQL is set up locally (see below)

Run the following to run both the database and get the server running:

```bash
$ npm run dev
```

## Setting up PostgreSQL locally

1. Make sure you have homebrew installed
`/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"`
2. `brew update`
3. `brew install postgres`
4. type this to start the postgres server `postgres -D /usr/local/var/postgres`
5. open new terminal tab
6.` createuser punchcard -P` (it'll prompt for a password) use `<PASSWORD>`
7. `createdb -O punchcard punchcard`
8. reconnect to psql as new user `psql -d punchcard -U punchcard`
9. connect to db `\connect punchcard`

Once you are connected you should be able to use psql cli syntax to check tables.
* `\d+` checks table relations
* `\l` lists all available databases
* `select * from "database_name";` Displays all rows in database, replacing database_name with the table you want to see.
* list all tables for user punchcard: `\c punchcard \dt`

## Changelog

See the [latest release](https://github.com/punchcard-cms/punchcard/releases/latest) for the most recent changelog
{'fraction_non_alphanumeric': 0.12679425837320574, 'fraction_numerical': 0.006911217437533227, 'mean_word_length': 4.762633996937213, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 15, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2028555', 'n_tokens_mistral': 1260, 'n_tokens_neox': 1190, 'n_words': 393}