1. Vonage Learn
  2. It
  3. Courses
  4. Onehack
  5. Databases
  6. Creating Data

Creating Data

Learn core database concepts, and store data independent from your applications

NeDB Documentation

create-film.js

let nedb = require('nedb');

// Create new database file & connect
let filmsDb = new nedb({ filename: 'films.db', autoload: true });

// Insert the film
filmsDb.insert({ imdb: 'tt3521164', name: 'Moana' });

Need help? Have questions? Join the Vonage Developer Community Slack and use the channel #onehack.