Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2021-1-capstone-design2
/
2015104215
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
장재혁
2021-04-29 01:56:16 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
fa8935924e35c8ad24e5f84f5ef327252c532256
fa893592
1 parent
a4938fc6
Add database settings
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
6 deletions
project/package.json
project/packages/api/database.db
project/packages/api/src/app.module.ts
project/packages/api/src/mypage/mypage.entity.ts
project/package.json
View file @
fa89359
...
...
@@ -6,10 +6,10 @@
},
"scripts"
:
{
"build"
:
"lerna run build"
,
"build:api"
:
"lerna exec --sc
rop
@graphql-community/api --stream yarn build"
,
"build:web"
:
"lerna exec --sc
rop
@graphql-community/api --stream yarn build"
,
"dev:web"
:
"lerna exec --sc
rop
@graphql-community/web --stream yarn dev"
,
"dev:api"
:
"lerna exec --sc
rop
@graphql-community/api --stream yarn start:dev"
"build:api"
:
"lerna exec --sc
ope
@graphql-community/api --stream yarn build"
,
"build:web"
:
"lerna exec --sc
ope
@graphql-community/api --stream yarn build"
,
"dev:web"
:
"lerna exec --sc
ope
@graphql-community/web --stream yarn dev"
,
"dev:api"
:
"lerna exec --sc
ope
@graphql-community/api --stream yarn start:dev"
},
"workspaces"
:
[
"packages/**"
...
...
project/packages/api/database.db
0 → 100644
View file @
fa89359
No preview for this file type
project/packages/api/src/app.module.ts
View file @
fa89359
...
...
@@ -14,9 +14,10 @@ import { MypageModule } from './mypage/mypage.module';
}),
TypeOrmModule
.
forRoot
({
type
:
'sqlite'
,
database
:
'
:memory:
'
,
database
:
'
database.db
'
,
entities
:
[
'dist/**/*.entity{.ts,.js}'
],
synchronize
:
true
,
logging
:
false
,
}),
MypageModule
,
],
...
...
project/packages/api/src/mypage/mypage.entity.ts
View file @
fa89359
...
...
@@ -2,7 +2,7 @@
import
{
ObjectType
,
Field
,
Int
}
from
'@nestjs/graphql'
;
import
{
Column
,
Entity
,
PrimaryGeneratedColumn
}
from
'typeorm'
;
@
Entity
()
@
Entity
(
{
name
:
'my_pagelist'
}
)
@
ObjectType
()
export
class
MyPage
{
@
PrimaryGeneratedColumn
()
...
...
Please
register
or
login
to post a comment