A PostgreSQL database for a simple note-sharing social network.
- Access to a PostgreSQL database
-
Install dependencies
npm install
-
Create
knexfile.js
cp knexfile.example.js knexfile.js
-
Edit connection settings in
knexfile.js
-
Create a symlink to the knex executable (for convience)
ln -s node_modules/knex/bin/cli.js knex
-
Run migrations
./knex migrate:latest
-
Seed database with sample data (optional)
./knex seed:run