SlideShare a Scribd company logo
1. The BackEnd application run as web server using express having a REST API, should use
mongoDB queries to demonstrate following:
1.1 Create a Mongo dB collection to hold the data from the given CSV file. name this collection as
Covid Data or any appropriate name.
1.2 Create mongoose Schema in a JS separate file (Name it as of your choice) for this dataset
and from this Schema create a model to be used in add, delete, update and find queries.
1.3 Create another file (name it as of your choice) import the file that you uses mongoose Schema
created in 1.2 and make connection with mongoDB
1.4 Create a separate JS file (server.js ) that runs a web server using express and import the files
created in 1.2 and 1.3 Add the code in Server.js as required in the following :
1.5 , Add a Query in a POST method of the REST API that should be able to Add the data i.e.
number of cases, deaths , state, and date to the Covid collection in mongoDB
1.6. Add Query in a separate POST method for update case, death and date for a given state.
1.7 It should also have an separate Get method to show total number of cases & deaths for a
given state
1.8 It should also have an separate endpoint using POST method for deleting a record for a
document i.e. cases and deaths for given state
1.9 it should have an endpoint to having a Query to display first 20 record from the Covid data for
a given state having number of deaths greater than a given value entered by the user . the data
should be displayed on browser.

More Related Content

PDF
apidays LIVE Paris 2021 - 20 Minutes to Build a Serverless COVID-19 GraphQL A...
PDF
apidays LIVE Helsinki & North - 20 minutes to build a serverless COVID-19 RES...
PDF
Evolving your Data Access with MongoDB Stitch
PPTX
SH 1 - SES 3 - 3.6-Overview-Tel-Aviv.pptx
PPTX
SH 1 - SES 3 - 3.6-Overview-Tel-Aviv.pptx
PDF
Annies Land Company has identified the following two mutual.pdf
PDF
19 Critical thinking is required inaAll aspects of our .pdf
PDF
Discussion making decidion and overcoming bias using researc.pdf
apidays LIVE Paris 2021 - 20 Minutes to Build a Serverless COVID-19 GraphQL A...
apidays LIVE Helsinki & North - 20 minutes to build a serverless COVID-19 RES...
Evolving your Data Access with MongoDB Stitch
SH 1 - SES 3 - 3.6-Overview-Tel-Aviv.pptx
SH 1 - SES 3 - 3.6-Overview-Tel-Aviv.pptx
Annies Land Company has identified the following two mutual.pdf
19 Critical thinking is required inaAll aspects of our .pdf
Discussion making decidion and overcoming bias using researc.pdf

More from aakarcreations1 (20)

PDF
Dave Czarnecki es el socio gerente de Czarnecki y Hogan una.pdf
PDF
Busque en lnea un informe de noticias sobre un artefacto de.pdf
PDF
Cules de las siguientes afirmaciones sobre el poder relaci.pdf
PDF
Cul de las siguientes afirmaciones sobre los anillos de Sa.pdf
PDF
Cul de estas afirmaciones es correcta Flujo de caja libre.pdf
PDF
Consider the following events X student gets an B+ on pap.pdf
PDF
Bir rnn hizmetin veya markann tketicilerin zihnindeki i.pdf
PDF
Why am I getting an out of memory error and no window of my .pdf
PDF
Using Table 111 calculate the compound amount and compound.pdf
PDF
Uzun zaman nce ok ok uzak bir galakside Atba Bulutsus.pdf
PDF
New Archaeologists made great strides forward in their appro.pdf
PDF
Un paciente VIH positivo ingres con lesiones cutneas en t.pdf
PDF
True or falseChina was struck with serious and significant .pdf
PDF
Tketim Biyografi Girii 2 Dikkat Her gn mesaj bombardmann.pdf
PDF
The US bilateral real exchange rate with Mexico is define.pdf
PDF
The comparative balance sheet of Whitman Co at December 31.pdf
PDF
The development of the FeedFish app will be done increment.pdf
PDF
The adjusting entry to record accrued expenses aincludes a .pdf
PDF
A patient remains hypotensive after receiving epinephrine fo.pdf
PDF
Provide a brief explanation of the following project managem.pdf
Dave Czarnecki es el socio gerente de Czarnecki y Hogan una.pdf
Busque en lnea un informe de noticias sobre un artefacto de.pdf
Cules de las siguientes afirmaciones sobre el poder relaci.pdf
Cul de las siguientes afirmaciones sobre los anillos de Sa.pdf
Cul de estas afirmaciones es correcta Flujo de caja libre.pdf
Consider the following events X student gets an B+ on pap.pdf
Bir rnn hizmetin veya markann tketicilerin zihnindeki i.pdf
Why am I getting an out of memory error and no window of my .pdf
Using Table 111 calculate the compound amount and compound.pdf
Uzun zaman nce ok ok uzak bir galakside Atba Bulutsus.pdf
New Archaeologists made great strides forward in their appro.pdf
Un paciente VIH positivo ingres con lesiones cutneas en t.pdf
True or falseChina was struck with serious and significant .pdf
Tketim Biyografi Girii 2 Dikkat Her gn mesaj bombardmann.pdf
The US bilateral real exchange rate with Mexico is define.pdf
The comparative balance sheet of Whitman Co at December 31.pdf
The development of the FeedFish app will be done increment.pdf
The adjusting entry to record accrued expenses aincludes a .pdf
A patient remains hypotensive after receiving epinephrine fo.pdf
Provide a brief explanation of the following project managem.pdf

Recently uploaded (20)

PDF
Classroom Observation Tools for Teachers
PDF
Computing-Curriculum for Schools in Ghana
PDF
Hazard Identification & Risk Assessment .pdf
PPTX
Cell Types and Its function , kingdom of life
PDF
RMMM.pdf make it easy to upload and study
PDF
Weekly quiz Compilation Jan -July 25.pdf
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PPTX
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
PDF
advance database management system book.pdf
PDF
Empowerment Technology for Senior High School Guide
PPTX
Digestion and Absorption of Carbohydrates, Proteina and Fats
PDF
Trump Administration's workforce development strategy
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PPTX
Unit 4 Skeletal System.ppt.pptxopresentatiom
PPTX
Lesson notes of climatology university.
PDF
What if we spent less time fighting change, and more time building what’s rig...
PDF
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
PDF
Supply Chain Operations Speaking Notes -ICLT Program
Classroom Observation Tools for Teachers
Computing-Curriculum for Schools in Ghana
Hazard Identification & Risk Assessment .pdf
Cell Types and Its function , kingdom of life
RMMM.pdf make it easy to upload and study
Weekly quiz Compilation Jan -July 25.pdf
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
advance database management system book.pdf
Empowerment Technology for Senior High School Guide
Digestion and Absorption of Carbohydrates, Proteina and Fats
Trump Administration's workforce development strategy
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Chinmaya Tiranga quiz Grand Finale.pdf
Unit 4 Skeletal System.ppt.pptxopresentatiom
Lesson notes of climatology university.
What if we spent less time fighting change, and more time building what’s rig...
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
Supply Chain Operations Speaking Notes -ICLT Program

1 The BackEnd application run as web server using express h.pdf

  • 1. 1. The BackEnd application run as web server using express having a REST API, should use mongoDB queries to demonstrate following: 1.1 Create a Mongo dB collection to hold the data from the given CSV file. name this collection as Covid Data or any appropriate name. 1.2 Create mongoose Schema in a JS separate file (Name it as of your choice) for this dataset and from this Schema create a model to be used in add, delete, update and find queries. 1.3 Create another file (name it as of your choice) import the file that you uses mongoose Schema created in 1.2 and make connection with mongoDB 1.4 Create a separate JS file (server.js ) that runs a web server using express and import the files created in 1.2 and 1.3 Add the code in Server.js as required in the following : 1.5 , Add a Query in a POST method of the REST API that should be able to Add the data i.e. number of cases, deaths , state, and date to the Covid collection in mongoDB 1.6. Add Query in a separate POST method for update case, death and date for a given state. 1.7 It should also have an separate Get method to show total number of cases & deaths for a given state 1.8 It should also have an separate endpoint using POST method for deleting a record for a document i.e. cases and deaths for given state 1.9 it should have an endpoint to having a Query to display first 20 record from the Covid data for a given state having number of deaths greater than a given value entered by the user . the data should be displayed on browser.