-
Notifications
You must be signed in to change notification settings - Fork 23
/
init-mongo.js
134 lines (132 loc) · 3.49 KB
/
init-mongo.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
db = db.getSiblingDB("profileFolio");
db.skills.insertMany([
{
_id: ObjectId("667b888850aa1b4215433ff8"),
name: "typescript",
},
{
_id: ObjectId("667b888850aa1b4215433ff9"),
name: "javascript",
},
{
_id: ObjectId("667b888850aa1b4215433ffa"),
name: "node",
},
]);
db.users.insertOne({
_id: ObjectId("667b885950aa1b4215433ff4"),
basics: {
name: "Jane Smith",
label: "Software Engineer",
image: "https://janesmith.com/photo.jpg",
email: "jane.smith@gmail.com",
phone: "(123) 456-7890",
url: "https://janesmith.com",
summary:
"Experienced software engineer with a passion for developing innovative programs.",
location: {
address: "123 Main St",
postalCode: "12345",
city: "Metropolis",
countryCode: "US",
region: "NY",
},
profiles: [
{
network: "LinkedIn",
username: "janesmith",
url: "https://linkedin.com/in/janesmith",
},
{
network: "GitHub",
username: "janesmith",
url: "https://github.com/janesmith",
},
],
},
work: [
{
name: "TechCorp",
position: "Senior Developer",
url: "https://techcorp.com",
startDate: new Date("2018-05-01T00:00:00Z"), // Use Date constructor
endDate: null,
summary: "Developed and maintained various web applications.",
highlights: [
"Led a team of developers to create a new e-commerce platform.",
"Implemented a continuous integration and deployment pipeline.",
],
},
],
education: [
{
institution: "State University",
url: "https://stateuniversity.edu",
area: "Computer Science",
studyType: "Bachelor",
startDate: new Date("2010-09-01T00:00:00Z"), // Use Date constructor
endDate: new Date("2014-06-01T00:00:00Z"), // Use Date constructor
score: "3.8",
courses: [
"CS101 - Introduction to Computer Science",
"CS202 - Data Structures",
"CS303 - Algorithms",
],
},
],
certificates: [
{
name: "Certified Kubernetes Administrator",
date: new Date("2020-07-15T00:00:00Z"), // Use Date constructor
issuer: "CNCF",
url: "https://cncf.io/certified-kubernetes-administrator",
},
],
skills: [
{
name: "Web Development",
level: "Expert",
keywords: [
ObjectId("667b888850aa1b4215433ff8"),
ObjectId("667b888850aa1b4215433ff9"),
ObjectId("667b888850aa1b4215433ffa"),
],
},
],
languages: [
{
language: "English",
fluency: "Native",
},
{
language: "Spanish",
fluency: "Intermediate",
},
],
interests: [
{
name: "Traveling",
keywords: ["Backpacking", "Cultural Experiences"],
},
],
projects: [
{
name: "Personal Portfolio",
startDate: new Date("2020-01-01T00:00:00Z"), // Use Date constructor
endDate: new Date("2020-06-01T00:00:00Z"), // Use Date constructor
description:
"Developed a personal portfolio website to showcase my projects and skills.",
highlights: [
"Designed and implemented a responsive user interface.",
"Integrated a blog section to share technical articles.",
],
githubUrl: "https://github.com/janesmith/portfolio",
deployedUrl: "https://janesmith.com",
techStack: [
ObjectId("667b888850aa1b4215433ff8"),
ObjectId("667b888850aa1b4215433ff9"),
ObjectId("667b888850aa1b4215433ffa"),
],
},
],
});