52 | );
53 | }
54 | }
55 |
56 | export default App;
57 |
58 |
--------------------------------------------------------------------------------
/Jenkins-Server-TF/tools-install.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # For Ubuntu 22.04
3 | # Intsalling Java
4 | sudo apt update -y
5 | sudo apt install openjdk-17-jre -y
6 | sudo apt install openjdk-17-jdk -y
7 | java --version
8 |
9 | # Installing Jenkins
10 | curl -fsSL https://pkg.jenkins.io/debian/jenkins.io-2023.key | sudo tee \
11 | /usr/share/keyrings/jenkins-keyring.asc > /dev/null
12 | echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \
13 | https://pkg.jenkins.io/debian binary/ | sudo tee \
14 | /etc/apt/sources.list.d/jenkins.list > /dev/null
15 | sudo apt-get update -y
16 | sudo apt-get install jenkins -y
17 |
18 | # Installing Docker
19 | #!/bin/bash
20 | sudo apt update
21 | sudo apt install docker.io -y
22 | sudo usermod -aG docker jenkins
23 | sudo usermod -aG docker ubuntu
24 | sudo systemctl restart docker
25 | sudo chmod 777 /var/run/docker.sock
26 |
27 | # If you don't want to install Jenkins, you can create a container of Jenkins
28 | # docker run -d -p 8080:8080 -p 50000:50000 --name jenkins-container jenkins/jenkins:lts
29 |
30 | # Run Docker Container of Sonarqube
31 | #!/bin/bash
32 | docker run -d --name sonar -p 9000:9000 sonarqube:lts-community
33 |
34 |
35 | # Installing AWS CLI
36 | #!/bin/bash
37 | curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
38 | sudo apt install unzip -y
39 | unzip awscliv2.zip
40 | sudo ./aws/install
41 |
42 | # Installing Kubectl
43 | #!/bin/bash
44 | sudo apt update
45 | sudo apt install curl -y
46 | sudo curl -LO "https://dl.k8s.io/release/v1.28.4/bin/linux/amd64/kubectl"
47 | sudo chmod +x kubectl
48 | sudo mv kubectl /usr/local/bin/
49 | kubectl version --client
50 |
51 |
52 | # Installing eksctl
53 | #! /bin/bash
54 | curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp
55 | sudo mv /tmp/eksctl /usr/local/bin
56 | eksctl version
57 |
58 | # Installing Terraform
59 | #!/bin/bash
60 | wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
61 | echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
62 | sudo apt update
63 | sudo apt install terraform -y
64 |
65 | # Installing Trivy
66 | #!/bin/bash
67 | sudo apt-get install wget apt-transport-https gnupg lsb-release -y
68 | wget -qO - https://aquasecurity.github.io/trivy-repo/deb/public.key | sudo apt-key add -
69 | echo deb https://aquasecurity.github.io/trivy-repo/deb $(lsb_release -sc) main | sudo tee -a /etc/apt/sources.list.d/trivy.list
70 | sudo apt update
71 | sudo apt install trivy -y
72 |
73 |
74 | # Intalling Helm
75 | #! /bin/bash
76 | sudo snap install helm --classic
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Three-Tier Web Application Deployment on AWS EKS using AWS EKS, ArgoCD, Prometheus, Grafana, and Jenkins
2 | [](https://www.linkedin.com/in/aman-devops/)
3 | [](https://discord.com/invite/jdzF8kTtw2)
4 | [](https://medium.com/@amanpathakdevops)
5 | [](https://github.com/AmanPathak-DevOps)
6 | [](https://aws.amazon.com)
7 | [](https://www.terraform.io)
8 |
9 | 
10 |
11 | Welcome to the Three-Tier Web Application Deployment project! 🚀
12 |
13 | This repository hosts the implementation of a Three-Tier Web App using ReactJS, NodeJS, and MongoDB, deployed on AWS EKS. The project covers a wide range of tools and practices for a robust and scalable DevOps setup.
14 |
15 | ## Table of Contents
16 | - [Application Code](#application-code)
17 | - [Jenkins Pipeline Code](#jenkins-pipeline-code)
18 | - [Jenkins Server Terraform](#jenkins-server-terraform)
19 | - [Kubernetes Manifests Files](#kubernetes-manifests-files)
20 | - [Project Details](#project-details)
21 |
22 | ## Application Code
23 | The `Application-Code` directory contains the source code for the Three-Tier Web Application. Dive into this directory to explore the frontend and backend implementations.
24 |
25 | ## Jenkins Pipeline Code
26 | In the `Jenkins-Pipeline-Code` directory, you'll find Jenkins pipeline scripts. These scripts automate the CI/CD process, ensuring smooth integration and deployment of your application.
27 |
28 | ## Jenkins Server Terraform
29 | Explore the `Jenkins-Server-TF` directory to find Terraform scripts for setting up the Jenkins Server on AWS. These scripts simplify the infrastructure provisioning process.
30 |
31 | ## Kubernetes Manifests Files
32 | The `Kubernetes-Manifests-Files` directory holds Kubernetes manifests for deploying your application on AWS EKS. Understand and customize these files to suit your project needs.
33 |
34 | ## Project Details
35 | 🛠️ **Tools Explored:**
36 | - Terraform & AWS CLI for AWS infrastructure
37 | - Jenkins, Sonarqube, Terraform, Kubectl, and more for CI/CD setup
38 | - Helm, Prometheus, and Grafana for Monitoring
39 | - ArgoCD for GitOps practices
40 |
41 | 🚢 **High-Level Overview:**
42 | - IAM User setup & Terraform magic on AWS
43 | - Jenkins deployment with AWS integration
44 | - EKS Cluster creation & Load Balancer configuration
45 | - Private ECR repositories for secure image management
46 | - Helm charts for efficient monitoring setup
47 | - GitOps with ArgoCD - the cherry on top!
48 |
49 | 📈 **The journey covered everything from setting up tools to deploying a Three-Tier app, ensuring data persistence, and implementing CI/CD pipelines.**
50 |
51 | ## Getting Started
52 | To get started with this project, refer to our [comprehensive guide](https://amanpathakdevops.medium.com/advanced-end-to-end-devsecops-kubernetes-three-tier-project-using-aws-eks-argocd-prometheus-fbbfdb956d1a) that walks you through IAM user setup, infrastructure provisioning, CI/CD pipeline configuration, EKS cluster creation, and more.
53 |
54 | ## Contributing
55 | We welcome contributions! If you have ideas for enhancements or find any issues, please open a pull request or file an issue.
56 |
57 | ## License
58 | This project is licensed under the [MIT License](LICENSE).
59 |
60 | Happy Coding! 🚀
61 |
--------------------------------------------------------------------------------
/Jenkins-Pipeline-Code/Jenkinsfile-Backend:
--------------------------------------------------------------------------------
1 | pipeline {
2 | agent any
3 | tools {
4 | nodejs 'nodejs'
5 | }
6 | environment {
7 | SCANNER_HOME=tool 'sonar-scanner'
8 | AWS_ACCOUNT_ID = credentials('AWS-ACCOUNT-ID ')
9 | AWS_ECR_REPO_NAME = credentials('ECR-backend-id ')
10 | AWS_DEFAULT_REGION = 'eu-north-1'
11 | REPOSITORY_URI = "${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com/"
12 | }
13 | stages {
14 | stage('Cleaning Workspace') {
15 | steps {
16 | cleanWs()
17 | }
18 | }
19 | stage('Checkout from Git') {
20 | steps {
21 | git branch: 'main', credentialsId: 'Git-cred', url: 'https://github.com/MaryamMairaj123/End-to-End-Kubernetes-Three-Tier-DevSecOps-Project.git'
22 | }
23 | }
24 | stage('Sonarqube Analysis') {
25 | steps {
26 | dir('Application-Code/backend') {
27 | withSonarQubeEnv('sonar-server') {
28 | sh ''' $SCANNER_HOME/bin/sonar-scanner \
29 | -Dsonar.projectName=backend \
30 | -Dsonar.projectKey=backend '''
31 | }
32 | }
33 | }
34 | }
35 | stage('Quality Check') {
36 | steps {
37 | script {
38 | waitForQualityGate abortPipeline: false, credentialsId: 'sonar-token'
39 | }
40 | }
41 | }
42 | // stage('OWASP Dependency-Check Scan') {
43 | // steps {
44 | // dir('Application-Code/backend') {
45 | // dependencyCheck additionalArguments: '--scan ./ --disableYarnAudit --disableNodeAudit', odcInstallation: 'DP-Check'
46 | // dependencyCheckPublisher pattern: '**/dependency-check-report.xml'
47 | // }
48 | // }
49 | // }
50 | stage('Trivy File Scan') {
51 | steps {
52 | dir('Application-Code/backend') {
53 | sh 'trivy fs . > trivyfs.txt'
54 | }
55 | }
56 | }
57 | stage("Docker Image Build") {
58 | steps {
59 | script {
60 | dir('Application-Code/backend') {
61 | sh 'docker system prune -f'
62 | sh 'docker container prune -f'
63 | sh 'docker build -t ${AWS_ECR_REPO_NAME} .'
64 | }
65 | }
66 | }
67 | }
68 | stage("ECR Image Pushing") {
69 | steps {
70 | script {
71 | sh 'aws ecr get-login-password --region ${AWS_DEFAULT_REGION} | docker login --username AWS --password-stdin ${REPOSITORY_URI}'
72 | sh 'docker tag ${AWS_ECR_REPO_NAME} ${REPOSITORY_URI}${AWS_ECR_REPO_NAME}:${BUILD_NUMBER}'
73 | sh 'docker push ${REPOSITORY_URI}${AWS_ECR_REPO_NAME}:${BUILD_NUMBER}'
74 | }
75 | }
76 | }
77 | stage("TRIVY Image Scan") {
78 | steps {
79 | sh 'trivy image ${REPOSITORY_URI}${AWS_ECR_REPO_NAME}:${BUILD_NUMBER} > trivyimage.txt'
80 | }
81 | }
82 | stage('Checkout Code') {
83 | steps {
84 | git branch: 'main', credentialsId: 'Git-cred', url: 'https://github.com/MaryamMairaj123/End-to-End-Kubernetes-Three-Tier-DevSecOps-Project.git'
85 | }
86 | }
87 | stage('Update Deployment file') {
88 | environment {
89 | GIT_REPO_NAME = "End-to-End-Kubernetes-Three-Tier-DevSecOps-Project"
90 | GIT_USER_NAME = "MaryamMairaj123"
91 | }
92 | steps {
93 | dir('Kubernetes-Manifests-file/Backend') {
94 | withCredentials([string(credentialsId: 'GITHUB', variable: 'Git-cred')]) {
95 | sh '''
96 | git config user.email "maryammairaj53@gmail.com"
97 | git config user.name "MaryamMairaj123"
98 | BUILD_NUMBER=${BUILD_NUMBER}
99 | echo $BUILD_NUMBER
100 | imageTag=$(grep -oP '(?<=backend:)[^ ]+' deployment.yaml)
101 | echo $imageTag
102 | sed -i "s/${AWS_ECR_REPO_NAME}:${imageTag}/${AWS_ECR_REPO_NAME}:${BUILD_NUMBER}/" deployment.yaml
103 | git add deployment.yaml
104 | git commit -m "Update deployment Image to version \${BUILD_NUMBER}"
105 | git push https://MaryamMairaj123:@github.com/MaryamMairaj123/End-to-End-Kubernetes-Three-Tier-DevSecOps-Project HEAD:main
106 | '''
107 | }
108 | }
109 | }
110 | }
111 | }
112 | }
113 |
--------------------------------------------------------------------------------
/Jenkins-Pipeline-Code/Jenkinsfile-Frontend:
--------------------------------------------------------------------------------
1 | pipeline {
2 | agent any
3 | tools {
4 | nodejs 'nodejs'
5 | }
6 | environment {
7 | SCANNER_HOME=tool 'sonar-scanner'
8 | AWS_ACCOUNT_ID = credentials('AWS-ACCOUNT-ID')
9 | AWS_ECR_REPO_NAME = credentials('ECR-frontend-id')
10 | AWS_DEFAULT_REGION = 'eu-north-1'
11 | REPOSITORY_URI = "${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com/"
12 | }
13 | stages {
14 | stage('Cleaning Workspace') {
15 | steps {
16 | cleanWs()
17 | }
18 | }
19 | stage('Checkout from Git') {
20 | steps {
21 | git branch: 'main', credentialsId: 'Git-cred', url: 'https://github.com/MaryamMairaj123/End-to-End-Kubernetes-Three-Tier-DevSecOps-Project.git'
22 | }
23 | }
24 | stage('Sonarqube Analysis') {
25 | steps {
26 | dir('Application-Code/frontend') {
27 | withSonarQubeEnv('sonar-server') {
28 | sh ''' $SCANNER_HOME/bin/sonar-scanner \
29 | -Dsonar.projectName=frontend \
30 | -Dsonar.projectKey=frontend '''
31 | }
32 | }
33 | }
34 | }
35 | stage('Quality Check') {
36 | steps {
37 | script {
38 | waitForQualityGate abortPipeline: false, credentialsId: 'sonar-token'
39 | }
40 | }
41 | }
42 | // stage('OWASP Dependency-Check Scan') {
43 | // steps {
44 | // dir('Application-Code/frontend') {
45 | // dependencyCheck additionalArguments: '--scan ./ --disableYarnAudit --disableNodeAudit', odcInstallation: 'dependencycheck'
46 | // dependencyCheckPublisher pattern: '**/dependency-check-report.xml'
47 | // }
48 | // }
49 | // }
50 | stage('Trivy File Scan') {
51 | steps {
52 | dir('Application-Code/frontend') {
53 | sh 'trivy fs . > trivyfs.txt'
54 | }
55 | }
56 | }
57 | stage("Docker Image Build") {
58 | steps {
59 | script {
60 | dir('Application-Code/frontend') {
61 | sh 'docker system prune -f'
62 | sh 'docker container prune -f'
63 | sh 'docker build -t ${AWS_ECR_REPO_NAME} .'
64 | }
65 | }
66 | }
67 | }
68 | stage("ECR Image Pushing") {
69 | steps {
70 | script {
71 | sh 'aws ecr get-login-password --region ${AWS_DEFAULT_REGION} | docker login --username AWS --password-stdin ${REPOSITORY_URI}'
72 | sh 'docker tag ${AWS_ECR_REPO_NAME} ${REPOSITORY_URI}${AWS_ECR_REPO_NAME}:${BUILD_NUMBER}'
73 | sh 'docker push ${REPOSITORY_URI}${AWS_ECR_REPO_NAME}:${BUILD_NUMBER}'
74 | }
75 | }
76 | }
77 | stage("TRIVY Image Scan") {
78 | steps {
79 | sh 'trivy image ${REPOSITORY_URI}${AWS_ECR_REPO_NAME}:${BUILD_NUMBER} > trivyimage.txt'
80 | }
81 | }
82 | stage('Checkout Code') {
83 | steps {
84 | git branch: 'main', credentialsId: 'Git-cred', url: 'https://github.com/MaryamMairaj123/End-to-End-Kubernetes-Three-Tier-DevSecOps-Project.git'
85 | }
86 | }
87 | stage('Update Deployment file') {
88 | environment {
89 | GIT_REPO_NAME = "End-to-End-Kubernetes-Three-Tier-DevSecOps-Project"
90 | GIT_USER_NAME = "MaryamMairaj123"
91 | }
92 | steps {
93 | dir('Kubernetes-Manifests-file/Frontend') {
94 | withCredentials([string(credentialsId: 'GITHUB', variable: 'Git-cred')]) {
95 | sh '''
96 | git config user.email "maryammairaj53@gmail.com"
97 | git config user.name "MaryamMairaj123"
98 | BUILD_NUMBER=${BUILD_NUMBER}
99 | echo $BUILD_NUMBER
100 | imageTag=$(grep -oP '(?<=frontend:)[^ ]+' deployment.yaml)
101 | echo $imageTag
102 | sed -i "s/${AWS_ECR_REPO_NAME}:${imageTag}/${AWS_ECR_REPO_NAME}:${BUILD_NUMBER}/" deployment.yaml
103 | git add deployment.yaml
104 | git commit -m "Update deployment Image to version \${BUILD_NUMBER}"
105 | git push https://MaryamMairaj123:@github.com/MaryamMairaj123/End-to-End-Kubernetes-Three-Tier-DevSecOps-Project HEAD:main
106 |
107 | '''
108 | }
109 | }
110 | }
111 | }
112 | }
113 | }
114 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "[]"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright [yyyy] [name of copyright owner]
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
202 |
--------------------------------------------------------------------------------
/modules/LICENSE:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "[]"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright [yyyy] [name of copyright owner]
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
202 |
--------------------------------------------------------------------------------
/Application-Code/backend/package-lock.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "server",
3 | "version": "1.0.0",
4 | "lockfileVersion": 1,
5 | "requires": true,
6 | "dependencies": {
7 | "@types/bson": {
8 | "version": "4.0.3",
9 | "resolved": "https://registry.npmjs.org/@types/bson/-/bson-4.0.3.tgz",
10 | "integrity": "sha512-mVRvYnTOZJz3ccpxhr3wgxVmSeiYinW+zlzQz3SXWaJmD1DuL05Jeq7nKw3SnbKmbleW5qrLG5vdyWe/A9sXhw==",
11 | "requires": {
12 | "@types/node": "*"
13 | }
14 | },
15 | "@types/mongodb": {
16 | "version": "3.6.18",
17 | "resolved": "https://registry.npmjs.org/@types/mongodb/-/mongodb-3.6.18.tgz",
18 | "integrity": "sha512-JSVFt9p0rTfZ4EgzXmVHUB3ue00xe3CRbQho8nXfImzEDDM4O7I3po1bwbWl/EIbLENxUreZxqLOc8lvcnLVPA==",
19 | "requires": {
20 | "@types/bson": "*",
21 | "@types/node": "*"
22 | }
23 | },
24 | "@types/node": {
25 | "version": "15.12.2",
26 | "resolved": "https://registry.npmjs.org/@types/node/-/node-15.12.2.tgz",
27 | "integrity": "sha512-zjQ69G564OCIWIOHSXyQEEDpdpGl+G348RAKY0XXy9Z5kU9Vzv1GMNnkar/ZJ8dzXB3COzD9Mo9NtRZ4xfgUww=="
28 | },
29 | "accepts": {
30 | "version": "1.3.7",
31 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz",
32 | "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==",
33 | "requires": {
34 | "mime-types": "~2.1.24",
35 | "negotiator": "0.6.2"
36 | }
37 | },
38 | "array-flatten": {
39 | "version": "1.1.1",
40 | "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
41 | "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI="
42 | },
43 | "bl": {
44 | "version": "2.2.1",
45 | "resolved": "https://registry.npmjs.org/bl/-/bl-2.2.1.tgz",
46 | "integrity": "sha512-6Pesp1w0DEX1N550i/uGV/TqucVL4AM/pgThFSN/Qq9si1/DF9aIHs1BxD8V/QU0HoeHO6cQRTAuYnLPKq1e4g==",
47 | "requires": {
48 | "readable-stream": "^2.3.5",
49 | "safe-buffer": "^5.1.1"
50 | }
51 | },
52 | "bluebird": {
53 | "version": "3.5.1",
54 | "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.1.tgz",
55 | "integrity": "sha512-MKiLiV+I1AA596t9w1sQJ8jkiSr5+ZKi0WKrYGUn6d1Fx+Ij4tIj+m2WMQSGczs5jZVxV339chE8iwk6F64wjA=="
56 | },
57 | "body-parser": {
58 | "version": "1.19.0",
59 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz",
60 | "integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==",
61 | "requires": {
62 | "bytes": "3.1.0",
63 | "content-type": "~1.0.4",
64 | "debug": "2.6.9",
65 | "depd": "~1.1.2",
66 | "http-errors": "1.7.2",
67 | "iconv-lite": "0.4.24",
68 | "on-finished": "~2.3.0",
69 | "qs": "6.7.0",
70 | "raw-body": "2.4.0",
71 | "type-is": "~1.6.17"
72 | }
73 | },
74 | "bson": {
75 | "version": "1.1.6",
76 | "resolved": "https://registry.npmjs.org/bson/-/bson-1.1.6.tgz",
77 | "integrity": "sha512-EvVNVeGo4tHxwi8L6bPj3y3itEvStdwvvlojVxxbyYfoaxJ6keLgrTuKdyfEAszFK+H3olzBuafE0yoh0D1gdg=="
78 | },
79 | "bytes": {
80 | "version": "3.1.0",
81 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz",
82 | "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg=="
83 | },
84 | "content-disposition": {
85 | "version": "0.5.3",
86 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz",
87 | "integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==",
88 | "requires": {
89 | "safe-buffer": "5.1.2"
90 | }
91 | },
92 | "content-type": {
93 | "version": "1.0.4",
94 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz",
95 | "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA=="
96 | },
97 | "cookie": {
98 | "version": "0.4.0",
99 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz",
100 | "integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg=="
101 | },
102 | "cookie-signature": {
103 | "version": "1.0.6",
104 | "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
105 | "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw="
106 | },
107 | "core-util-is": {
108 | "version": "1.0.2",
109 | "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
110 | "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="
111 | },
112 | "cors": {
113 | "version": "2.8.5",
114 | "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz",
115 | "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==",
116 | "requires": {
117 | "object-assign": "^4",
118 | "vary": "^1"
119 | }
120 | },
121 | "debug": {
122 | "version": "2.6.9",
123 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
124 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
125 | "requires": {
126 | "ms": "2.0.0"
127 | }
128 | },
129 | "denque": {
130 | "version": "1.5.0",
131 | "resolved": "https://registry.npmjs.org/denque/-/denque-1.5.0.tgz",
132 | "integrity": "sha512-CYiCSgIF1p6EUByQPlGkKnP1M9g0ZV3qMIrqMqZqdwazygIA/YP2vrbcyl1h/WppKJTdl1F85cXIle+394iDAQ=="
133 | },
134 | "depd": {
135 | "version": "1.1.2",
136 | "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz",
137 | "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak="
138 | },
139 | "destroy": {
140 | "version": "1.0.4",
141 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz",
142 | "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA="
143 | },
144 | "ee-first": {
145 | "version": "1.1.1",
146 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
147 | "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0="
148 | },
149 | "encodeurl": {
150 | "version": "1.0.2",
151 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
152 | "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k="
153 | },
154 | "escape-html": {
155 | "version": "1.0.3",
156 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
157 | "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg="
158 | },
159 | "etag": {
160 | "version": "1.8.1",
161 | "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
162 | "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc="
163 | },
164 | "express": {
165 | "version": "4.17.1",
166 | "resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz",
167 | "integrity": "sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g==",
168 | "requires": {
169 | "accepts": "~1.3.7",
170 | "array-flatten": "1.1.1",
171 | "body-parser": "1.19.0",
172 | "content-disposition": "0.5.3",
173 | "content-type": "~1.0.4",
174 | "cookie": "0.4.0",
175 | "cookie-signature": "1.0.6",
176 | "debug": "2.6.9",
177 | "depd": "~1.1.2",
178 | "encodeurl": "~1.0.2",
179 | "escape-html": "~1.0.3",
180 | "etag": "~1.8.1",
181 | "finalhandler": "~1.1.2",
182 | "fresh": "0.5.2",
183 | "merge-descriptors": "1.0.1",
184 | "methods": "~1.1.2",
185 | "on-finished": "~2.3.0",
186 | "parseurl": "~1.3.3",
187 | "path-to-regexp": "0.1.7",
188 | "proxy-addr": "~2.0.5",
189 | "qs": "6.7.0",
190 | "range-parser": "~1.2.1",
191 | "safe-buffer": "5.1.2",
192 | "send": "0.17.1",
193 | "serve-static": "1.14.1",
194 | "setprototypeof": "1.1.1",
195 | "statuses": "~1.5.0",
196 | "type-is": "~1.6.18",
197 | "utils-merge": "1.0.1",
198 | "vary": "~1.1.2"
199 | }
200 | },
201 | "finalhandler": {
202 | "version": "1.1.2",
203 | "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz",
204 | "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==",
205 | "requires": {
206 | "debug": "2.6.9",
207 | "encodeurl": "~1.0.2",
208 | "escape-html": "~1.0.3",
209 | "on-finished": "~2.3.0",
210 | "parseurl": "~1.3.3",
211 | "statuses": "~1.5.0",
212 | "unpipe": "~1.0.0"
213 | }
214 | },
215 | "forwarded": {
216 | "version": "0.2.0",
217 | "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
218 | "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow=="
219 | },
220 | "fresh": {
221 | "version": "0.5.2",
222 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
223 | "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac="
224 | },
225 | "http-errors": {
226 | "version": "1.7.2",
227 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz",
228 | "integrity": "sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==",
229 | "requires": {
230 | "depd": "~1.1.2",
231 | "inherits": "2.0.3",
232 | "setprototypeof": "1.1.1",
233 | "statuses": ">= 1.5.0 < 2",
234 | "toidentifier": "1.0.0"
235 | }
236 | },
237 | "iconv-lite": {
238 | "version": "0.4.24",
239 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
240 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
241 | "requires": {
242 | "safer-buffer": ">= 2.1.2 < 3"
243 | }
244 | },
245 | "inherits": {
246 | "version": "2.0.3",
247 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
248 | "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4="
249 | },
250 | "ipaddr.js": {
251 | "version": "1.9.1",
252 | "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
253 | "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g=="
254 | },
255 | "isarray": {
256 | "version": "1.0.0",
257 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
258 | "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE="
259 | },
260 | "kareem": {
261 | "version": "2.3.2",
262 | "resolved": "https://registry.npmjs.org/kareem/-/kareem-2.3.2.tgz",
263 | "integrity": "sha512-STHz9P7X2L4Kwn72fA4rGyqyXdmrMSdxqHx9IXon/FXluXieaFA6KJ2upcHAHxQPQ0LeM/OjLrhFxifHewOALQ=="
264 | },
265 | "media-typer": {
266 | "version": "0.3.0",
267 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
268 | "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g="
269 | },
270 | "memory-pager": {
271 | "version": "1.5.0",
272 | "resolved": "https://registry.npmjs.org/memory-pager/-/memory-pager-1.5.0.tgz",
273 | "integrity": "sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg==",
274 | "optional": true
275 | },
276 | "merge-descriptors": {
277 | "version": "1.0.1",
278 | "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz",
279 | "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E="
280 | },
281 | "methods": {
282 | "version": "1.1.2",
283 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
284 | "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4="
285 | },
286 | "mime": {
287 | "version": "1.6.0",
288 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
289 | "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg=="
290 | },
291 | "mime-db": {
292 | "version": "1.48.0",
293 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.48.0.tgz",
294 | "integrity": "sha512-FM3QwxV+TnZYQ2aRqhlKBMHxk10lTbMt3bBkMAp54ddrNeVSfcQYOOKuGuy3Ddrm38I04If834fOUSq1yzslJQ=="
295 | },
296 | "mime-types": {
297 | "version": "2.1.31",
298 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.31.tgz",
299 | "integrity": "sha512-XGZnNzm3QvgKxa8dpzyhFTHmpP3l5YNusmne07VUOXxou9CqUqYa/HBy124RqtVh/O2pECas/MOcsDgpilPOPg==",
300 | "requires": {
301 | "mime-db": "1.48.0"
302 | }
303 | },
304 | "mongodb": {
305 | "version": "3.6.8",
306 | "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-3.6.8.tgz",
307 | "integrity": "sha512-sDjJvI73WjON1vapcbyBD3Ao9/VN3TKYY8/QX9EPbs22KaCSrQ5rXo5ZZd44tWJ3wl3FlnrFZ+KyUtNH6+1ZPQ==",
308 | "requires": {
309 | "bl": "^2.2.1",
310 | "bson": "^1.1.4",
311 | "denque": "^1.4.1",
312 | "optional-require": "^1.0.3",
313 | "safe-buffer": "^5.1.2",
314 | "saslprep": "^1.0.0"
315 | }
316 | },
317 | "mongoose": {
318 | "version": "5.12.14",
319 | "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-5.12.14.tgz",
320 | "integrity": "sha512-1lMRY8cfGYFWHqe5DLnVgNQDyD0fEbSoWIQe9Mllt/ZtayZ5XUFQt+o5VKrB44vsT5cLNzgwEFO0NvwTwqLluQ==",
321 | "requires": {
322 | "@types/mongodb": "^3.5.27",
323 | "bson": "^1.1.4",
324 | "kareem": "2.3.2",
325 | "mongodb": "3.6.8",
326 | "mongoose-legacy-pluralize": "1.0.2",
327 | "mpath": "0.8.3",
328 | "mquery": "3.2.5",
329 | "ms": "2.1.2",
330 | "regexp-clone": "1.0.0",
331 | "safe-buffer": "5.2.1",
332 | "sift": "13.5.2",
333 | "sliced": "1.0.1"
334 | },
335 | "dependencies": {
336 | "ms": {
337 | "version": "2.1.2",
338 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
339 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
340 | },
341 | "safe-buffer": {
342 | "version": "5.2.1",
343 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
344 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="
345 | }
346 | }
347 | },
348 | "mongoose-legacy-pluralize": {
349 | "version": "1.0.2",
350 | "resolved": "https://registry.npmjs.org/mongoose-legacy-pluralize/-/mongoose-legacy-pluralize-1.0.2.tgz",
351 | "integrity": "sha512-Yo/7qQU4/EyIS8YDFSeenIvXxZN+ld7YdV9LqFVQJzTLye8unujAWPZ4NWKfFA+RNjh+wvTWKY9Z3E5XM6ZZiQ=="
352 | },
353 | "mpath": {
354 | "version": "0.8.3",
355 | "resolved": "https://registry.npmjs.org/mpath/-/mpath-0.8.3.tgz",
356 | "integrity": "sha512-eb9rRvhDltXVNL6Fxd2zM9D4vKBxjVVQNLNijlj7uoXUy19zNDsIif5zR+pWmPCWNKwAtqyo4JveQm4nfD5+eA=="
357 | },
358 | "mquery": {
359 | "version": "3.2.5",
360 | "resolved": "https://registry.npmjs.org/mquery/-/mquery-3.2.5.tgz",
361 | "integrity": "sha512-VjOKHHgU84wij7IUoZzFRU07IAxd5kWJaDmyUzQlbjHjyoeK5TNeeo8ZsFDtTYnSgpW6n/nMNIHvE3u8Lbrf4A==",
362 | "requires": {
363 | "bluebird": "3.5.1",
364 | "debug": "3.1.0",
365 | "regexp-clone": "^1.0.0",
366 | "safe-buffer": "5.1.2",
367 | "sliced": "1.0.1"
368 | },
369 | "dependencies": {
370 | "debug": {
371 | "version": "3.1.0",
372 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz",
373 | "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==",
374 | "requires": {
375 | "ms": "2.0.0"
376 | }
377 | }
378 | }
379 | },
380 | "ms": {
381 | "version": "2.0.0",
382 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
383 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
384 | },
385 | "negotiator": {
386 | "version": "0.6.2",
387 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz",
388 | "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw=="
389 | },
390 | "object-assign": {
391 | "version": "4.1.1",
392 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
393 | "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM="
394 | },
395 | "on-finished": {
396 | "version": "2.3.0",
397 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz",
398 | "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=",
399 | "requires": {
400 | "ee-first": "1.1.1"
401 | }
402 | },
403 | "optional-require": {
404 | "version": "1.0.3",
405 | "resolved": "https://registry.npmjs.org/optional-require/-/optional-require-1.0.3.tgz",
406 | "integrity": "sha512-RV2Zp2MY2aeYK5G+B/Sps8lW5NHAzE5QClbFP15j+PWmP+T9PxlJXBOOLoSAdgwFvS4t0aMR4vpedMkbHfh0nA=="
407 | },
408 | "parseurl": {
409 | "version": "1.3.3",
410 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
411 | "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ=="
412 | },
413 | "path-to-regexp": {
414 | "version": "0.1.7",
415 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz",
416 | "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w="
417 | },
418 | "process-nextick-args": {
419 | "version": "2.0.1",
420 | "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
421 | "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag=="
422 | },
423 | "proxy-addr": {
424 | "version": "2.0.7",
425 | "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
426 | "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
427 | "requires": {
428 | "forwarded": "0.2.0",
429 | "ipaddr.js": "1.9.1"
430 | }
431 | },
432 | "qs": {
433 | "version": "6.7.0",
434 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz",
435 | "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ=="
436 | },
437 | "range-parser": {
438 | "version": "1.2.1",
439 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
440 | "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg=="
441 | },
442 | "raw-body": {
443 | "version": "2.4.0",
444 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.0.tgz",
445 | "integrity": "sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q==",
446 | "requires": {
447 | "bytes": "3.1.0",
448 | "http-errors": "1.7.2",
449 | "iconv-lite": "0.4.24",
450 | "unpipe": "1.0.0"
451 | }
452 | },
453 | "readable-stream": {
454 | "version": "2.3.7",
455 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz",
456 | "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==",
457 | "requires": {
458 | "core-util-is": "~1.0.0",
459 | "inherits": "~2.0.3",
460 | "isarray": "~1.0.0",
461 | "process-nextick-args": "~2.0.0",
462 | "safe-buffer": "~5.1.1",
463 | "string_decoder": "~1.1.1",
464 | "util-deprecate": "~1.0.1"
465 | }
466 | },
467 | "regexp-clone": {
468 | "version": "1.0.0",
469 | "resolved": "https://registry.npmjs.org/regexp-clone/-/regexp-clone-1.0.0.tgz",
470 | "integrity": "sha512-TuAasHQNamyyJ2hb97IuBEif4qBHGjPHBS64sZwytpLEqtBQ1gPJTnOaQ6qmpET16cK14kkjbazl6+p0RRv0yw=="
471 | },
472 | "safe-buffer": {
473 | "version": "5.1.2",
474 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
475 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
476 | },
477 | "safer-buffer": {
478 | "version": "2.1.2",
479 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
480 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
481 | },
482 | "saslprep": {
483 | "version": "1.0.3",
484 | "resolved": "https://registry.npmjs.org/saslprep/-/saslprep-1.0.3.tgz",
485 | "integrity": "sha512-/MY/PEMbk2SuY5sScONwhUDsV2p77Znkb/q3nSVstq/yQzYJOH/Azh29p9oJLsl3LnQwSvZDKagDGBsBwSooag==",
486 | "optional": true,
487 | "requires": {
488 | "sparse-bitfield": "^3.0.3"
489 | }
490 | },
491 | "send": {
492 | "version": "0.17.1",
493 | "resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz",
494 | "integrity": "sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==",
495 | "requires": {
496 | "debug": "2.6.9",
497 | "depd": "~1.1.2",
498 | "destroy": "~1.0.4",
499 | "encodeurl": "~1.0.2",
500 | "escape-html": "~1.0.3",
501 | "etag": "~1.8.1",
502 | "fresh": "0.5.2",
503 | "http-errors": "~1.7.2",
504 | "mime": "1.6.0",
505 | "ms": "2.1.1",
506 | "on-finished": "~2.3.0",
507 | "range-parser": "~1.2.1",
508 | "statuses": "~1.5.0"
509 | },
510 | "dependencies": {
511 | "ms": {
512 | "version": "2.1.1",
513 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz",
514 | "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg=="
515 | }
516 | }
517 | },
518 | "serve-static": {
519 | "version": "1.14.1",
520 | "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz",
521 | "integrity": "sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg==",
522 | "requires": {
523 | "encodeurl": "~1.0.2",
524 | "escape-html": "~1.0.3",
525 | "parseurl": "~1.3.3",
526 | "send": "0.17.1"
527 | }
528 | },
529 | "setprototypeof": {
530 | "version": "1.1.1",
531 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz",
532 | "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw=="
533 | },
534 | "sift": {
535 | "version": "13.5.2",
536 | "resolved": "https://registry.npmjs.org/sift/-/sift-13.5.2.tgz",
537 | "integrity": "sha512-+gxdEOMA2J+AI+fVsCqeNn7Tgx3M9ZN9jdi95939l1IJ8cZsqS8sqpJyOkic2SJk+1+98Uwryt/gL6XDaV+UZA=="
538 | },
539 | "sliced": {
540 | "version": "1.0.1",
541 | "resolved": "https://registry.npmjs.org/sliced/-/sliced-1.0.1.tgz",
542 | "integrity": "sha1-CzpmK10Ewxd7GSa+qCsD+Dei70E="
543 | },
544 | "sparse-bitfield": {
545 | "version": "3.0.3",
546 | "resolved": "https://registry.npmjs.org/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz",
547 | "integrity": "sha1-/0rm5oZWBWuks+eSqzM004JzyhE=",
548 | "optional": true,
549 | "requires": {
550 | "memory-pager": "^1.0.2"
551 | }
552 | },
553 | "statuses": {
554 | "version": "1.5.0",
555 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz",
556 | "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow="
557 | },
558 | "string_decoder": {
559 | "version": "1.1.1",
560 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
561 | "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
562 | "requires": {
563 | "safe-buffer": "~5.1.0"
564 | }
565 | },
566 | "toidentifier": {
567 | "version": "1.0.0",
568 | "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz",
569 | "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw=="
570 | },
571 | "type-is": {
572 | "version": "1.6.18",
573 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
574 | "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
575 | "requires": {
576 | "media-typer": "0.3.0",
577 | "mime-types": "~2.1.24"
578 | }
579 | },
580 | "unpipe": {
581 | "version": "1.0.0",
582 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
583 | "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw="
584 | },
585 | "util-deprecate": {
586 | "version": "1.0.2",
587 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
588 | "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8="
589 | },
590 | "utils-merge": {
591 | "version": "1.0.1",
592 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
593 | "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM="
594 | },
595 | "vary": {
596 | "version": "1.1.2",
597 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
598 | "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw="
599 | }
600 | }
601 | }
602 |
--------------------------------------------------------------------------------