-
Notifications
You must be signed in to change notification settings - Fork 1
Installation & configuration
sergeych edited this page Aug 19, 2012
·
2 revisions
with npm
npm install prego
If you want to run tests, create empty postgres database named prego_test, then you can use npm test in the prego home, for example.
The easiest way is to have ./config(.js|.coffee) module, that contains database connection string:
exports.dbConnectionString = "postgres://user:passw@localhost:5432/mydbname"
This is and easiest way, all functions and migrations will work out of the box. Otherwise, you should set it manually in yor code:
prego = require 'prego'
prego.connectionString = "postgres://localhost:5432/prego_test"
Now you can use all prego functions.