【文件属性】:
文件名称:Express-typeorm-javascript-api-example:使用TypeORM和JavaScript的Express API示例
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-10 10:34:05
nodejs express postgresql typeorm JavaScript
使用TypeORM和JavaScript的Express API示例
克隆存储库
将ormconfig.template.json重命名为ormconfig.json并填写您的PostgreSQL数据库信息。 就像是:
{
" type " : " postgres " ,
" host " : " localhost " ,
" port " : 5432 ,
" username " : " postgres " ,
" password " : " postgres " ,
" database " : " test " ,
" entities " : [ " src/entity/*.js " ],
" logging " : true ,
" synchronize " : true
}
我使用的是Pos
【文件预览】:
Express-typeorm-javascript-api-example-master
----.gitignore(35B)
----ormconfig.template.json(214B)
----README.md(749B)
----app.js(2KB)
----package.json(702B)
----src()
--------model()
--------entity()