Skip to Main Content
Hands-on Nuxt.js Web Development
book

Hands-on Nuxt.js Web Development

by Lau Tiam Kok Kok Lau
August 2020
Beginner to intermediate content levelBeginner to intermediate
698 pages
12h 2m
English
Packt Publishing
Content preview from Hands-on Nuxt.js Web Development
Adding a Server-Side Database

We added Koa as the server-side framework for our Nuxt app in the previous chapter with some dummy data. In this chapter, we will set up MongoDB as the server-side database to replace that dummy data. We will write some MongoDB CRUD queries, add data to the database, and use asyncData to fetch the data from the database.

The topics we will cover in this chapter are as follows:

  • Introducing MongoDB
  • Writing basic MongoDB queries
  • Writing MongoDB CRUD operations
  • Injecting data with MongoDB CRUD queries
  • Integrating MongoDB with Koa
  • Integrating with Nuxt pages

Introducing MongoDB

MongoDB is an open source document-oriented database management system (DBMS) that stores data in JSON-like documents called Binary JSON ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Test-Driven JavaScript Development

Test-Driven JavaScript Development

Ravi Kumar Gupta
Front-End Development Projects with Vue.js

Front-End Development Projects with Vue.js

Raymond Camden, Hugo Di Francesco, Clifford Gurney, Philip Kirkbride, Maya Shavin

Publisher Resources

ISBN: 9781789952698Supplemental Content