Headless Content Management System designed with content strategy at its heart. Built with Node.
npm i punchcard-cms --save
const punchcard = require('punchcard');
punchcard().then(app => {
app.listen(8080);
})
Make sure PostgresSQL is set up locally (see below)
Run the following to run both the database and get the server running:
$ npm run dev
- Make sure you have homebrew installed
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew install postgres
- type this to start the postgres server
postgres -D /usr/local/var/postgres
- open new terminal tab
6.
createuser punchcard -P
(it'll prompt for a password) useW@ts0n
createdb -O punchcard punchcard
- reconnect to psql as new user
psql -d punchcard -U punchcard
- 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 databasesselect * 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
See the latest release for the most recent changelog