1. Vonage Learn
  2. Courses
  3. Onehack
  4. Databases
  5. 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.