GithubHelp home page GithubHelp logo

education-nosql-mongodb's Introduction

Education NoSQL MongoDB

Table of Contents

  • Apa itu NoSQL
  • Perbedaan NoSQL dengan SQL
  • Mapping Istilah SQL ke NoSQL (MongoDB)
  • Let's Learn MongoDB
    • Install MongoDB Local
    • Intro to MongoDB Atlas
    • Perintah dasar MongoDB
  • Dive into Code
    • Struktur Folder
    • Membuat config/connectionToDb.js
    • Membuat controller
    • Membuat model

Apa itu NoSQL

Perbedaan NoSQL dengan SQL

Mapping Istilah SQL ke NoSQL

SQL MongoDB
database database
table collection
row document
column field
index index
primary key primary key
transactions transactions
Deskripsi Postgres MongoDB
DB postgres mongod
Client psql mongosh
Driver (Node) pg mongodb

Let's Learn MongoDB

Install MongoDB Local

Install MongoDB Atlas

Perintah Dasar MongoDB

  • use [namadatabase]
  • db.[namadocument].insertMany()
  • db.[namadocument].insertOne()
  • db.[namadocument].find().pretty()
  • db.[namadocument].findOne()
  • db.[namadocument].deleteMany()

Dive into Code

Struktur Folder

Karena nantinya kita akan membuatnya secara micro(services), pastikan untuk membuat struktur foldernya dengan baik yah.

Umumnya struktur folder micro(services) adalah sebagai berikut:

  • rootFolderServer
    • services
      • namaDomainServicesPertama
        • app.js (start di sini untuk kode server (service) pertama)
      • namaDomainServicesKedua
        • app.js (start di sini untuk kode server (service) kedua)
      • dst

Membuat config/connectionToDb.js

Membuat controller

Membuat model

References

education-nosql-mongodb's People

Contributors

withered-flowers avatar

Stargazers

Liu Purnomo avatar Septian Maulana avatar Arnold Pramudita Candra avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.