Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
MajorBook - Team202
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LeeYongJae
MajorBook - Team202
Merge requests
!6
Login 기능 추가
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Login 기능 추가
login
into
master
Overview
2
Commits
18
Pipelines
0
Changes
34
Merged
LeeYongJae
requested to merge
login
into
master
5 years ago
Overview
2
Commits
18
Pipelines
0
Changes
34
Expand
로그인 기능을 추가하기 위한 Front/Backend 파일들을 추가 및 수정하였고, MongoDB와 express를 연동시켜놨습니다. 각자 MongoDB 설치 부탁드립니다 !!!
1
0
Merge request reports
Compare
master
version 5
83a61b8e
5 years ago
version 4
1ff1284b
5 years ago
version 3
a8821ddb
5 years ago
version 2
9dce85c1
5 years ago
version 1
8d63b04d
5 years ago
master (base)
and
version 1
latest version
b0e3e78d
18 commits,
5 years ago
version 5
83a61b8e
17 commits,
5 years ago
version 4
1ff1284b
16 commits,
5 years ago
version 3
a8821ddb
15 commits,
5 years ago
version 2
9dce85c1
14 commits,
5 years ago
version 1
8d63b04d
13 commits,
5 years ago
34 files
+
1764
−
246
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
34
Search (e.g. *.vue) (Ctrl+P)
backend/models/user.js
0 → 100644
+
17
−
0
Options
var
mongoose
=
require
(
'
mongoose
'
);
var
Schema
=
mongoose
.
Schema
;
var
userSchema
=
new
Schema
({
user
:
String
,
name
:
String
,
id
:
String
,
password
:
String
,
email
:
String
,
isLoggedIn
:
Boolean
,
create_date
:
{
type
:
Date
,
default
:
Date
.
now
}
});
// model을 user로 만들면 특별한 이름을 지정하지 않으면
// mongoDB에서 알아서 Collection name을 알아서 복수형으로 해줍니다
// 그리하여 Collection name은 users로 됩니다
module
.
exports
=
mongoose
.
model
(
'
user
'
,
userSchema
);
\ No newline at end of file
Loading