【发布时间】:2016-12-28 14:57:40
【问题描述】:
我是 angularjs 新手,我正在尝试使用 yeoman 和 PostgreSQL 使用 generator-angular-fullstack 设置第一个项目。一切似乎都在工作。
当我在 localhost (grunt serve) 上使用 grunt 时,我看到一个基本的 yeoman 页面,但没有数据。创建一个数据库和表。有一些测试数据。看起来从项目到数据库的连接正在工作,但它无法访问数据。
development.js 中的数据库配置:
module.exports = {
// MongoDB connection options
mongo: {
uri: 'mongodb://localhost/fullstack-dev'
},
// Postgres connection options
postgres: {
uri: process.env.POSTGRES_URL ||
'postgres://user:pass@localhost:5432/testDB'
},
database: 'testDB',
username: 'postgres',
password: 'postgres',
seedDB: true
};
【问题讨论】:
标签: javascript angularjs postgresql angular-fullstack