title
CouchDB Basics

description
In this video we will install CouchDB on a Windows machine, create a database using the Fauxton web GUI, create some views and make requests to the database using cURL. CouchDB Course - https://www.eduonix.com/affiliates/id/16-10057

detail
{'title': 'CouchDB Basics', 'heatmap': [{'end': 650.13, 'start': 632.842, 'weight': 1}], 'summary': 'Focuses on couchdb basics, installation on windows, setting up single node database, creating/editing documents, customized views, using curl for http requests and database interaction, and database replication to remote host with a plan for node.js application and cloudant signup.', 'chapters': [{'end': 158.914, 'segs': [{'end': 95.877, 'src': 'embed', 'start': 0.782, 'weight': 0, 'content': [{'end': 5.063, 'text': "In this video, we're going to be covering all the basics and fundamentals of CouchDB.", 'start': 0.782, 'duration': 4.281}, {'end': 10.245, 'text': "So if you don't know what CouchDB is, it's an open source NoSQL database.", 'start': 5.584, 'duration': 4.661}, {'end': 13.506, 'text': "And to be more specific, it's a document database.", 'start': 10.525, 'duration': 2.981}, {'end': 15.867, 'text': "So it's on the same level as MongoDB.", 'start': 13.686, 'duration': 2.181}, {'end': 24.85, 'text': 'It stores data in JSON format, and it uses an internal architecture that was built for the web and built to handle massive amounts of data.', 'start': 16.547, 'duration': 8.303}, {'end': 32.296, 'text': "It's also cross-platform, so it's available for Linux, Unix systems, Windows, Mac, and FreeBSD.", 'start': 25.49, 'duration': 6.806}, {'end': 34.458, 'text': "And in this video, we'll be using Windows.", 'start': 32.716, 'duration': 1.742}, {'end': 38.602, 'text': 'So I just want to explain it a little bit before we get started.', 'start': 35.319, 'duration': 3.283}, {'end': 43.246, 'text': 'So down here, you can see that it uses something called the Couch Replication Protocol.', 'start': 39.042, 'duration': 4.204}, {'end': 51.992, 'text': "So if we click on that, up here it says that it's a protocol for synchronizing JSON documents between two peers over HTTP.", 'start': 43.906, 'duration': 8.086}, {'end': 55.834, 'text': 'And it does this using this CouchDB REST API.', 'start': 52.852, 'duration': 2.982}, {'end': 63.92, 'text': 'So it says the components of the API URL path help determine the part of CouchDB that needs to be accessed.', 'start': 56.635, 'duration': 7.285}, {'end': 71.566, 'text': 'So we can make a request and, as you can see here, if we make a request to our host, slash all DBs,', 'start': 64.819, 'duration': 6.747}, {'end': 76.23, 'text': 'that will give us a list of all the databases in that CouchDB instance.', 'start': 71.566, 'duration': 4.664}, {'end': 84.416, 'text': "So it's essentially a NoSQL database that's available to us through making HTTP requests.", 'start': 77.571, 'duration': 6.845}, {'end': 90.882, 'text': 'So we can connect to it through cURL or pretty much anything that allows us to make requests.', 'start': 85.237, 'duration': 5.645}, {'end': 94.195, 'text': 'All right, so enough with the methodology.', 'start': 91.852, 'duration': 2.343}, {'end': 95.877, 'text': "Let's go ahead and get this installed.", 'start': 94.255, 'duration': 1.622}], 'summary': 'Couchdb is an open source nosql database, storing data in json format, with cross-platform availability and designed to handle massive data, using the couch replication protocol and rest api.', 'duration': 95.095, 'max_score': 0.782, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/nlqv9Np3iAU/pics/nlqv9Np3iAU782.jpg'}], 'start': 0.782, 'title': 'Couchdb basics and installation', 'summary': 'Covers the basics and fundamentals of couchdb, a nosql database storing data in json format, with a focus on windows installation.', 'chapters': [{'end': 158.914, 'start': 0.782, 'title': 'Couchdb basics and installation', 'summary': 'Covers the basics and fundamentals of couchdb, a nosql database storing data in json format and using an internal architecture built for the web, available across multiple platforms, and accessible through http requests, with a focus on windows installation.', 'duration': 158.132, 'highlights': ['CouchDB is an open source NoSQL database that stores data in JSON format and uses an internal architecture built for the web. open source, NoSQL database, JSON format, internal architecture built for the web', 'CouchDB is cross-platform, available for Linux, Unix systems, Windows, Mac, and FreeBSD, and accessible through making HTTP requests. cross-platform, available for multiple operating systems, accessible through HTTP requests', 'Couch Replication Protocol is used for synchronizing JSON documents between two peers over HTTP, with components of the API URL path determining the part of CouchDB that needs to be accessed. Couch Replication Protocol, synchronizing JSON documents, components of the API URL path', 'CouchDB can be installed on Windows through a simple Windows installer, with the ability to choose the installation path. installation on Windows, simple Windows installer, choice of installation path']}], 'duration': 158.132, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/nlqv9Np3iAU/pics/nlqv9Np3iAU782.jpg', 'highlights': ['CouchDB is cross-platform, available for Linux, Unix systems, Windows, Mac, and FreeBSD, and accessible through making HTTP requests.', 'CouchDB can be installed on Windows through a simple Windows installer, with the ability to choose the installation path.', 'Couch Replication Protocol is used for synchronizing JSON documents between two peers over HTTP, with components of the API URL path determining the part of CouchDB that needs to be accessed.', 'CouchDB is an open source NoSQL database that stores data in JSON format and uses an internal architecture built for the web.']}, {'end': 355.468, 'segs': [{'end': 256.918, 'src': 'embed', 'start': 159.594, 'weight': 0, 'content': [{'end': 165.655, 'text': 'Now, once it finishes, it should start up as a service and we want to go to our browser and do HTTP.', 'start': 159.594, 'duration': 6.061}, {'end': 176.437, 'text': 'localhost and I believe the port is 5984 and then we want to go to slash underscore utils.', 'start': 167.794, 'duration': 8.643}, {'end': 185.5, 'text': "alright, so that's going to open up this foxton program, and this is basically just a web GUI that we can use to manage our databases,", 'start': 176.437, 'duration': 9.063}, {'end': 190.102, 'text': 'create our admin accounts and pretty much anything else you can do with coach.', 'start': 185.5, 'duration': 4.602}, {'end': 197.448, 'text': 'Now they changed it in version in CouchDB 2..', 'start': 191.641, 'duration': 5.807}, {'end': 204.416, 'text': 'In version 1.6 and earlier, it was a program called Futon, which was just like this.', 'start': 197.448, 'duration': 6.968}, {'end': 208.941, 'text': "We could create databases and all that, but it wasn't as intuitive, I guess.", 'start': 204.456, 'duration': 4.485}, {'end': 214.029, 'text': 'So now what we want to do is you see this tab down here that says verify.', 'start': 210.248, 'duration': 3.781}, {'end': 221.971, 'text': "We just want to verify that everything's okay, that we can create a database, a document, we can update documents delete,", 'start': 214.429, 'duration': 7.542}, {'end': 224.132, 'text': 'create a view and replication.', 'start': 221.971, 'duration': 2.161}, {'end': 225.492, 'text': "So let's go ahead and click verify.", 'start': 224.172, 'duration': 1.32}, {'end': 227.273, 'text': 'Okay, so everything looks good.', 'start': 225.512, 'duration': 1.761}, {'end': 230.474, 'text': "It gives us a little message up here saying it's all right.", 'start': 227.293, 'duration': 3.181}, {'end': 238.683, 'text': "Now what we're going to do is click on the Setup tab here and it asks if we want to create a cluster or a single node.", 'start': 231.594, 'duration': 7.089}, {'end': 243.368, 'text': 'Now a cluster has to do with multiple servers and just a large setup.', 'start': 238.723, 'duration': 4.645}, {'end': 249.876, 'text': 'that is way beyond what we would need for just a simple database or for a simple application.', 'start': 243.368, 'duration': 6.508}, {'end': 256.918, 'text': "So we're going to click on Configure Single Node, and we need to add some credentials up here.", 'start': 250.436, 'duration': 6.482}], 'summary': 'Setting up couchdb as a service, accessing web gui at localhost:5984/_utils, verifying and configuring single node setup.', 'duration': 97.324, 'max_score': 159.594, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/nlqv9Np3iAU/pics/nlqv9Np3iAU159594.jpg'}, {'end': 355.468, 'src': 'embed', 'start': 282.012, 'weight': 4, 'content': [{'end': 288.299, 'text': 'We have global changes, metadata, replicated data, and users.', 'start': 282.012, 'duration': 6.287}, {'end': 293.665, 'text': 'So for users, that has the admin user we just created.', 'start': 289.66, 'duration': 4.005}, {'end': 298.53, 'text': 'And if we click on admin, we can change our password if we want.', 'start': 293.685, 'duration': 4.845}, {'end': 301.373, 'text': 'We can also create other admins for the system.', 'start': 298.55, 'duration': 2.823}, {'end': 310.3, 'text': "so, now that everything's set up, we have an admin user, let's go to the databases tab and we're going to create a new database.", 'start': 303.376, 'duration': 6.924}, {'end': 313.181, 'text': "so let's call this database.", 'start': 310.3, 'duration': 2.881}, {'end': 316.383, 'text': "we'll call it my company.", 'start': 313.181, 'duration': 3.202}, {'end': 318.203, 'text': 'click create.', 'start': 316.383, 'duration': 1.82}, {'end': 319.464, 'text': 'you are not server admin.', 'start': 318.203, 'duration': 1.261}, {'end': 323.766, 'text': "that's right, okay, we have to actually log in as our admin.", 'start': 319.464, 'duration': 4.302}, {'end': 340.475, 'text': "so let's click log out and admin, Log in and create database my company and create.", 'start': 323.766, 'duration': 16.709}, {'end': 343.537, 'text': 'All right, so it says database created successfully.', 'start': 341.115, 'duration': 2.422}, {'end': 345.719, 'text': "So now we're in the database screen.", 'start': 344.058, 'duration': 1.661}, {'end': 355.468, 'text': 'Notice that the URL says after utils database my company and then all docs limit 100.', 'start': 347.02, 'duration': 8.448}], 'summary': "Created admin user, set up database 'my company', with global changes.", 'duration': 73.456, 'max_score': 282.012, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/nlqv9Np3iAU/pics/nlqv9Np3iAU282012.jpg'}], 'start': 159.594, 'title': 'Setting up couchdb and single node database', 'summary': 'Demonstrates setting up couchdb, accessing the web gui, and verifying actions. it also covers setting up a single node database, creating an admin user, configuring the node, and managing the database, including replication options.', 'chapters': [{'end': 230.474, 'start': 159.594, 'title': 'Setting up couchdb and accessing the web gui', 'summary': 'Demonstrates setting up couchdb as a service, accessing the web gui at localhost:5984/_utils, and verifying different actions like creating databases, updating documents, and replication.', 'duration': 70.88, 'highlights': ['Accessing the web GUI at localhost:5984/_utils to manage databases and admin accounts', 'Verifying the ability to create a database, a document, update documents, delete, create a view, and replication', 'Transition from Futon to Foxton in CouchDB 2.0, offering a more intuitive user interface']}, {'end': 355.468, 'start': 231.594, 'title': 'Setting up single node database', 'summary': "Covers the process of setting up a single node database, including creating an admin user, configuring the single node, and creating a new database named 'my company'. it also explains the options for replication and database management.", 'duration': 123.874, 'highlights': ['The chapter explains the process of setting up a single node database by configuring a single node and creating an admin user. Setting up a single node database, creating an admin user', "It mentions the steps for creating a new database named 'my company' and the successful creation of the database. Creating a new database 'my company', successful database creation", "It discusses the options for replication and database management, including changing the admin user's password and creating additional admins. Options for replication and database management, changing admin user's password, creating additional admins"]}], 'duration': 195.874, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/nlqv9Np3iAU/pics/nlqv9Np3iAU159594.jpg', 'highlights': ['Accessing the web GUI at localhost:5984/_utils to manage databases and admin accounts', 'Transition from Futon to Foxton in CouchDB 2.0, offering a more intuitive user interface', 'Verifying the ability to create a database, a document, update documents, delete, create a view, and replication', 'The chapter explains the process of setting up a single node database by configuring a single node and creating an admin user', "Options for replication and database management, changing admin user's password, creating additional admins", "Mention of creating a new database named 'my company' and the successful creation of the database"]}, {'end': 791.758, 'segs': [{'end': 407.037, 'src': 'embed', 'start': 355.468, 'weight': 1, 'content': [{'end': 361.331, 'text': 'So this here, if we had any documents, would show up to 100.', 'start': 355.468, 'duration': 5.863}, {'end': 363.453, 'text': "So let's go ahead and add a document.", 'start': 361.331, 'duration': 2.122}, {'end': 365.374, 'text': "We'll click New Doc.", 'start': 363.973, 'duration': 1.401}, {'end': 370.078, 'text': 'And you can see it automatically gives us this ID, this underscore ID.', 'start': 366.175, 'duration': 3.903}, {'end': 371.899, 'text': "So we're just going to add to this.", 'start': 370.618, 'duration': 1.281}, {'end': 375.562, 'text': "So we'll go ahead and add a name.", 'start': 373.64, 'duration': 1.922}, {'end': 382.587, 'text': "And let's add an email.", 'start': 375.582, 'duration': 7.005}, {'end': 407.037, 'text': "and so let's do maybe a phone number and then let's do an address, which will be an array.", 'start': 390.331, 'duration': 16.706}], 'summary': 'The system can display up to 100 documents, and a new document can be added with an auto-generated id, name, email, phone number, and address as an array.', 'duration': 51.569, 'max_score': 355.468, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/nlqv9Np3iAU/pics/nlqv9Np3iAU355468.jpg'}, {'end': 487.431, 'src': 'embed', 'start': 459.268, 'weight': 0, 'content': [{'end': 463.851, 'text': "so let's click create document and it says saving document.", 'start': 459.268, 'duration': 4.583}, {'end': 469.345, 'text': 'And over here you can see we have our ID.', 'start': 466.824, 'duration': 2.521}, {'end': 474.427, 'text': 'It also gives us a underscore rev field, which is the revision.', 'start': 469.545, 'duration': 4.882}, {'end': 478.428, 'text': 'If we click this edit document, we can go and we can change things.', 'start': 474.987, 'duration': 3.441}, {'end': 480.009, 'text': 'We can also see all the data.', 'start': 478.488, 'duration': 1.521}, {'end': 487.431, 'text': "All right, and we can also click this check mark, this docs, and it'll show us the rest of the data as well.", 'start': 480.489, 'duration': 6.942}], 'summary': 'Demonstrating document creation and editing, including id and revision details.', 'duration': 28.163, 'max_score': 459.268, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/nlqv9Np3iAU/pics/nlqv9Np3iAU459268.jpg'}, {'end': 626.401, 'src': 'embed', 'start': 576.3, 'weight': 3, 'content': [{'end': 577.821, 'text': "We're going to create a view.", 'start': 576.3, 'duration': 1.521}, {'end': 584.365, 'text': 'And basically, a view is we want to query our database, and then we want a customized response.', 'start': 578.122, 'duration': 6.243}, {'end': 592.529, 'text': "Now we do this through a map and reduce function down here and you can see that reduce is optional so we're just going to work with map.", 'start': 585.706, 'duration': 6.823}, {'end': 599.573, 'text': "Now what this is doing is it's going to emit a key value pair.", 'start': 593.13, 'duration': 6.443}, {'end': 606.876, 'text': "So right here what it's saying is that we want to use the ID as the key and then just the number 1 as the value.", 'start': 600.533, 'duration': 6.343}, {'end': 614.278, 'text': "all right, and this isn't very helpful, but let's write it just to see what it gives us.", 'start': 608.197, 'duration': 6.081}, {'end': 614.658, 'text': 'all right.', 'start': 614.278, 'duration': 0.38}, {'end': 626.401, 'text': "so let's just say view one, and we can actually name the design doc up here and we'll just say view one, all right.", 'start': 614.658, 'duration': 11.743}], 'summary': 'Creating a custom database view with map function to emit key-value pair.', 'duration': 50.101, 'max_score': 576.3, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/nlqv9Np3iAU/pics/nlqv9Np3iAU576300.jpg'}, {'end': 658.052, 'src': 'heatmap', 'start': 632.842, 'weight': 1, 'content': [{'end': 639.574, 'text': "so let's click, create document and build index And you can see that now we have this view.", 'start': 632.842, 'duration': 6.732}, {'end': 642.779, 'text': 'And if we look, we have the ID as the key.', 'start': 639.774, 'duration': 3.005}, {'end': 648.327, 'text': 'And then the value is just the number one for both documents.', 'start': 642.799, 'duration': 5.528}, {'end': 650.13, 'text': "So that's not very helpful.", 'start': 648.968, 'duration': 1.162}, {'end': 651.933, 'text': "So let's create another one.", 'start': 650.791, 'duration': 1.142}, {'end': 658.052, 'text': "We'll say new view and let's call this view two.", 'start': 653.447, 'duration': 4.605}], 'summary': 'Creating document, building index, and adding new view for better organization.', 'duration': 25.21, 'max_score': 632.842, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/nlqv9Np3iAU/pics/nlqv9Np3iAU632842.jpg'}, {'end': 736.165, 'src': 'embed', 'start': 690.487, 'weight': 4, 'content': [{'end': 691.748, 'text': "So let's create another view.", 'start': 690.487, 'duration': 1.261}, {'end': 696.435, 'text': "And we'll call this one view3.", 'start': 694.455, 'duration': 1.98}, {'end': 702.977, 'text': "And instead of number 1, let's put in some curly braces.", 'start': 697.876, 'duration': 5.101}, {'end': 704.997, 'text': "And we'll say name.", 'start': 703.577, 'duration': 1.42}, {'end': 708.858, 'text': "And that's going to be doc.name.", 'start': 706.838, 'duration': 2.02}, {'end': 713.439, 'text': "And let's do, what else do we have? Email.", 'start': 708.878, 'duration': 4.561}, {'end': 719.18, 'text': 'Doc.email Phone.', 'start': 714.959, 'duration': 4.221}, {'end': 728.818, 'text': 'Doc.phone and address.', 'start': 721.001, 'duration': 7.817}, {'end': 730.619, 'text': 'doc dot address.', 'start': 728.818, 'duration': 1.801}, {'end': 731.72, 'text': 'all right.', 'start': 730.619, 'duration': 1.101}, {'end': 734.083, 'text': "so let's see what that gives us.", 'start': 731.72, 'duration': 2.363}, {'end': 736.165, 'text': "so now you can see that we're getting all the data.", 'start': 734.083, 'duration': 2.082}], 'summary': 'Creating view3 with doc.name, doc.email, doc.phone, and doc.address.', 'duration': 45.678, 'max_score': 690.487, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/nlqv9Np3iAU/pics/nlqv9Np3iAU690487.jpg'}], 'start': 355.468, 'title': 'Creating and editing documents in database and creating customized views in couchdb', 'summary': 'Covers creating and editing documents in a database with details such as automatic id generation, adding fields like name, email, phone number, and address, and the revision field. it also explores creating customized views in couchdb through installing the database, adding documents, and utilizing map functions to query and retrieve specific data.', 'chapters': [{'end': 544.116, 'start': 355.468, 'title': 'Creating and editing documents in database', 'summary': 'Covers the process of creating and editing documents in a database, including automatic id generation and adding fields such as name, email, phone number, and address, as well as the revision field and the ability to view and modify data.', 'duration': 188.648, 'highlights': ['The process of creating and editing documents in a database, including automatic ID generation, adding fields such as name, email, phone number, and address, and the ability to view and modify data.', 'The system automatically generates an ID for new documents, with the ability to add fields such as name, email, phone number, and address.', 'The system provides an underscore rev field for revision, allowing users to view and modify data for each document.', 'The chapter demonstrates the process of adding customer or client documents, including the ability to change and view data, and the use of the check mark to show the rest of the data.']}, {'end': 791.758, 'start': 544.116, 'title': 'Creating customized views in couchdb', 'summary': 'Covers the process of creating customized views in couchdb, including installing the database, adding documents, and utilizing map functions to emit key-value pairs, resulting in the ability to query and retrieve specific data from the database.', 'duration': 247.642, 'highlights': ['The process of creating customized views in CouchDB involves installing the database, adding documents, and utilizing map functions to emit key-value pairs. Installing the database, creating documents, and utilizing map functions to emit key-value pairs.', 'The map function is used to emit key-value pairs, such as using the ID as the key and the number 1 as the value. Demonstrating the use of the map function to emit key-value pairs, using the ID as the key and the number 1 as the value.', 'Creating views allows for the retrieval of specific data, such as obtaining the name of the customer from the database. Illustrating how creating views enables the retrieval of specific data, such as obtaining the name of the customer from the database.', 'Returning multiple fields as an object is possible when creating views in CouchDB. Explaining the capability of returning multiple fields as an object when creating views in CouchDB.', 'The process involves making requests to the URL of the design document to retrieve the desired data from the database. Detailing the process of making requests to the URL of the design document to retrieve the desired data from the database.']}], 'duration': 436.29, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/nlqv9Np3iAU/pics/nlqv9Np3iAU355468.jpg', 'highlights': ['The process of creating and editing documents in a database, including automatic ID generation, adding fields such as name, email, phone number, and address, and the ability to view and modify data.', 'The system automatically generates an ID for new documents, with the ability to add fields such as name, email, phone number, and address.', 'The system provides an underscore rev field for revision, allowing users to view and modify data for each document.', 'The process of creating customized views in CouchDB involves installing the database, adding documents, and utilizing map functions to emit key-value pairs.', 'Creating views allows for the retrieval of specific data, such as obtaining the name of the customer from the database.', 'The map function is used to emit key-value pairs, such as using the ID as the key and the number 1 as the value.']}, {'end': 1245.678, 'segs': [{'end': 848.417, 'src': 'embed', 'start': 791.758, 'weight': 0, 'content': [{'end': 797.414, 'text': 'see, you want rest easy chrome And they should have it installed.', 'start': 791.758, 'duration': 5.656}, {'end': 799.476, 'text': "Yep, if you don't, just go ahead and install it.", 'start': 797.534, 'duration': 1.942}, {'end': 800.297, 'text': "I'm going to launch it.", 'start': 799.516, 'duration': 0.781}, {'end': 805.242, 'text': "And let's grab that URL and put it in here.", 'start': 800.958, 'duration': 4.284}, {'end': 808.546, 'text': 'Okay, we want to make a get request to it.', 'start': 805.262, 'duration': 3.284}, {'end': 810.628, 'text': "We'll click send and we get the data.", 'start': 808.566, 'duration': 2.062}, {'end': 815.777, 'text': 'so now what i want to do is connect using curl all.', 'start': 812.935, 'duration': 2.842}, {'end': 826.984, 'text': "right now, for windows, we have to download it and let's see i forget right here, confused by code.com.", 'start': 815.777, 'duration': 11.207}, {'end': 829.746, 'text': "curl, we're just going to grab that client.", 'start': 826.984, 'duration': 2.762}, {'end': 835.11, 'text': "so let's say downloads and let's grab these.", 'start': 829.746, 'duration': 5.364}, {'end': 840.553, 'text': "i'm going to grab the 64-bit version which, with administrative privileges.", 'start': 835.11, 'duration': 5.443}, {'end': 844.855, 'text': "Yeah, let's go ahead and click that and download it.", 'start': 841.934, 'duration': 2.921}, {'end': 848.417, 'text': "Okay, we'll open that when done.", 'start': 844.875, 'duration': 3.542}], 'summary': 'Demonstrating installation of chrome and curl for making requests.', 'duration': 56.659, 'max_score': 791.758, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/nlqv9Np3iAU/pics/nlqv9Np3iAU791758.jpg'}, {'end': 918.571, 'src': 'embed', 'start': 884.953, 'weight': 2, 'content': [{'end': 893.762, 'text': "so we'll say curl and we want to add this dash x and then get http.", 'start': 884.953, 'duration': 8.809}, {'end': 906.575, 'text': "let's do our loopback 127.0.0.1, and it's port 5984, and then we're going to do slash underscore, all underscore db's.", 'start': 893.762, 'duration': 12.813}, {'end': 913.282, 'text': 'Alright, and that shows us all the databases that are available, including the my company one that we created.', 'start': 907.936, 'duration': 5.346}, {'end': 918.571, 'text': 'now to create a database, we need to make a put request.', 'start': 915.009, 'duration': 3.562}], 'summary': 'Using curl to list and create databases on localhost 127.0.0.1:5984', 'duration': 33.618, 'max_score': 884.953, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/nlqv9Np3iAU/pics/nlqv9Np3iAU884953.jpg'}, {'end': 1049.357, 'src': 'embed', 'start': 1005.292, 'weight': 3, 'content': [{'end': 1007.953, 'text': "so let's do set.", 'start': 1005.292, 'duration': 2.661}, {'end': 1019.597, 'text': "I'll say set server and we want to set that HTTP and then let's put our credentials in here as well, so we can make admin operations.", 'start': 1007.953, 'duration': 11.644}, {'end': 1027.671, 'text': 'so admin at 127.0.0.1 port 5984.', 'start': 1019.597, 'duration': 8.074}, {'end': 1031.652, 'text': 'all right.', 'start': 1027.671, 'duration': 3.981}, {'end': 1044.796, 'text': "so we'll set that as a server variable and now we should be able to say echo percent, server percent and okay.", 'start': 1031.652, 'duration': 13.144}, {'end': 1049.357, 'text': 'so now we have that stored in a variable and just to test it out,', 'start': 1044.796, 'duration': 4.561}], 'summary': 'Setting server to http at 127.0.0.1 port 5984 for admin operations.', 'duration': 44.065, 'max_score': 1005.292, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/nlqv9Np3iAU/pics/nlqv9Np3iAU1005292.jpg'}, {'end': 1245.678, 'src': 'embed', 'start': 1211.433, 'weight': 4, 'content': [{'end': 1220.476, 'text': 'so those that one and that one and this one, Alright.', 'start': 1211.433, 'duration': 9.043}, {'end': 1222.257, 'text': "so let's go ahead and try to run that.", 'start': 1220.476, 'duration': 1.781}, {'end': 1227.121, 'text': 'Okay, so it gives us this okay true, so things look okay.', 'start': 1222.958, 'duration': 4.163}, {'end': 1230.304, 'text': "Let's run our view again.", 'start': 1227.702, 'duration': 2.602}, {'end': 1235.449, 'text': 'Make a request to the view, which is right here.', 'start': 1230.885, 'duration': 4.564}, {'end': 1239.452, 'text': 'And now you can see that Kathy Williams is included.', 'start': 1235.469, 'duration': 3.983}, {'end': 1242.535, 'text': 'Alright, so we successfully added a document.', 'start': 1240.013, 'duration': 2.522}, {'end': 1245.678, 'text': "Let's go over here to Foxton and take a look.", 'start': 1243.115, 'duration': 2.563}], 'summary': 'Successfully added a document for kathy williams in foxton.', 'duration': 34.245, 'max_score': 1211.433, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/nlqv9Np3iAU/pics/nlqv9Np3iAU1211433.jpg'}], 'start': 791.758, 'title': 'Using curl for http requests and database interaction', 'summary': 'Covers using curl for making http requests and interacting with databases, including installation, downloading the 64-bit version, and emphasizing the importance of connecting using curl for windows. it also demonstrates making get and put requests, creating and accessing databases, setting server variables, and inserting documents with examples of the commands and their results.', 'chapters': [{'end': 848.417, 'start': 791.758, 'title': 'Using curl for making http requests', 'summary': 'Covers the process of using curl to make http requests, including installation and downloading the 64-bit version, emphasizing the importance of connecting using curl for windows.', 'duration': 56.659, 'highlights': ['The importance of connecting using Curl for Windows and the process of downloading the 64-bit version with administrative privileges.', 'Demonstrating the steps of making a get request using Chrome and getting the data.', 'The process of installing Curl for Windows and launching it to make a get request with a specific URL.']}, {'end': 1245.678, 'start': 848.437, 'title': 'Using curl to interact with databases', 'summary': 'Demonstrates using curl to interact with a local database, including making get and put requests, creating and accessing databases, setting server variables, and inserting documents, with examples of the commands and their results.', 'duration': 397.241, 'highlights': ['The chapter demonstrates making a get request to retrieve all databases using curl, resulting in the display of all available databases, including the one created (my company), and then proceeding to create a new database using a put request, which initially fails due to lack of server admin credentials but succeeds after including the credentials. get request to retrieve all databases, including the my company database, and a put request to create a new database', 'The chapter illustrates setting a server variable using the set command, allowing for the storage and reuse of server information, and making a get request using the server variable, demonstrating the successful retrieval of all databases. setting a server variable and making a get request using the server variable', 'The chapter showcases making a request to access a specific view, successfully fetching the data, and then proceeding to insert a document into the database using a put request, which is confirmed through a subsequent retrieval of the view showing the newly inserted document. making a request to access a specific view, inserting a document into the database, and confirming the insertion through a retrieval of the view']}], 'duration': 453.92, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/nlqv9Np3iAU/pics/nlqv9Np3iAU791758.jpg', 'highlights': ['Demonstrating the steps of making a get request using Chrome and getting the data.', 'The importance of connecting using Curl for Windows and the process of downloading the 64-bit version with administrative privileges.', 'The chapter demonstrates making a get request to retrieve all databases using curl, resulting in the display of all available databases, including the one created (my company), and then proceeding to create a new database using a put request, which initially fails due to lack of server admin credentials but succeeds after including the credentials.', 'The chapter illustrates setting a server variable using the set command, allowing for the storage and reuse of server information, and making a get request using the server variable, demonstrating the successful retrieval of all databases.', 'The chapter showcases making a request to access a specific view, successfully fetching the data, and then proceeding to insert a document into the database using a put request, which is confirmed through a subsequent retrieval of the view showing the newly inserted document.', 'The process of installing Curl for Windows and launching it to make a get request with a specific URL.']}, {'end': 1442.718, 'segs': [{'end': 1332.28, 'src': 'embed', 'start': 1279.7, 'weight': 1, 'content': [{'end': 1285.942, 'text': 'Yep And all you want to do is click sign up and create an account really quick.', 'start': 1279.7, 'duration': 6.242}, {'end': 1287.023, 'text': 'All right.', 'start': 1286.722, 'duration': 0.301}, {'end': 1291.104, 'text': "Now you're going to have your host name will be your username.cloudant.com.", 'start': 1287.063, 'duration': 4.041}, {'end': 1291.925, 'text': 'All right.', 'start': 1291.604, 'duration': 0.321}, {'end': 1294.966, 'text': 'So once you create that, it should automatically log you in.', 'start': 1291.965, 'duration': 3.001}, {'end': 1296.807, 'text': "I'm going to go ahead and sign in.", 'start': 1295.586, 'duration': 1.221}, {'end': 1297.807, 'text': 'I already have an account.', 'start': 1296.867, 'duration': 0.94}, {'end': 1305.154, 'text': 'Alright, so let me sign in.', 'start': 1303.672, 'duration': 1.482}, {'end': 1310.14, 'text': "And you'll see that it's basically the same interface that we have on our local host.", 'start': 1305.815, 'duration': 4.325}, {'end': 1315.666, 'text': 'Alright, with the addition of this account tab, we have some options here.', 'start': 1310.66, 'duration': 5.006}, {'end': 1324.574, 'text': 'Alright, so what I want to do is take our my company database and replicate it to the remote host.', 'start': 1315.686, 'duration': 8.888}, {'end': 1331.279, 'text': "alright, so we're gonna click on replication and on this side this is actually really easy.", 'start': 1324.574, 'duration': 6.705}, {'end': 1332.28, 'text': 'how they lay this out?', 'start': 1331.279, 'duration': 1.001}], 'summary': 'Creating an account, logging in, and replicating a database to a remote host using a username.cloudant.com hostname.', 'duration': 52.58, 'max_score': 1279.7, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/nlqv9Np3iAU/pics/nlqv9Np3iAU1279700.jpg'}, {'end': 1424.075, 'src': 'embed', 'start': 1396.21, 'weight': 0, 'content': [{'end': 1401.056, 'text': "Now let's go over to the remote host, click databases, and there it is, my company.", 'start': 1396.21, 'duration': 4.846}, {'end': 1403.779, 'text': 'Click on it, and it has all of our data.', 'start': 1401.557, 'duration': 2.222}, {'end': 1408.985, 'text': 'All right, so you can see how extremely easy replication is with CouchDB.', 'start': 1403.799, 'duration': 5.186}, {'end': 1412.347, 'text': "Now we're going to go ahead and stop here.", 'start': 1410.606, 'duration': 1.741}, {'end': 1424.075, 'text': "And what I'm going to do is I'm going to create a second part to this video where we can build a simple Node.js application using this CouchDB database.", 'start': 1413.188, 'duration': 10.887}], 'summary': 'Demonstrated easy replication with couchdb for company data.', 'duration': 27.865, 'max_score': 1396.21, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/nlqv9Np3iAU/pics/nlqv9Np3iAU1396210.jpg'}], 'start': 1247.139, 'title': 'Couchdb database replication', 'summary': 'Demonstrates replicating local database to remote host using couchdb, highlighting ease of replication and plan for node.js application, and instructions for cloudant signup and remote database access.', 'chapters': [{'end': 1305.154, 'start': 1247.139, 'title': 'Replication to remote couchdb databases', 'summary': 'Demonstrates how to replicate to a remote couchdb database using cloudant, with instructions on signing up and creating an account, and how to access the remote database using the host name.', 'duration': 58.015, 'highlights': ['The chapter demonstrates how to replicate to a remote CouchDB database using Cloudant.', 'Instructions on signing up and creating an account on Cloudant are provided.', 'The process of accessing the remote database using the host name is explained.']}, {'end': 1442.718, 'start': 1305.815, 'title': 'Couchdb database replication tutorial', 'summary': 'Demonstrates how to replicate a local database to a remote host using couchdb, showcasing the ease of replication and concluding with a plan to create a node.js application for data manipulation.', 'duration': 136.903, 'highlights': ["Replicating a local database to a remote host is extremely easy with CouchDB, as demonstrated by replicating the 'my company' database to a remote host using HTTPS, resulting in successful replication and easy access to the data.", "The tutorial concludes with a plan to create a Node.js application using CouchDB, utilizing the 'CouchDB Node' module for data communication and manipulation."]}], 'duration': 195.579, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/nlqv9Np3iAU/pics/nlqv9Np3iAU1247139.jpg', 'highlights': ['Replicating a local database to a remote host using CouchDB is demonstrated, highlighting the ease of replication', 'Instructions for signing up and creating an account on Cloudant are provided', 'The process of accessing the remote database using the host name is explained', 'The tutorial concludes with a plan to create a Node.js application using CouchDB']}], 'highlights': ['CouchDB is cross-platform, available for Linux, Unix systems, Windows, Mac, and FreeBSD, and accessible through making HTTP requests.', 'CouchDB can be installed on Windows through a simple Windows installer, with the ability to choose the installation path.', 'Couch Replication Protocol is used for synchronizing JSON documents between two peers over HTTP, with components of the API URL path determining the part of CouchDB that needs to be accessed.', 'CouchDB is an open source NoSQL database that stores data in JSON format and uses an internal architecture built for the web.', 'Accessing the web GUI at localhost:5984/_utils to manage databases and admin accounts', 'Transition from Futon to Foxton in CouchDB 2.0, offering a more intuitive user interface', 'The process of creating and editing documents in a database, including automatic ID generation, adding fields such as name, email, phone number, and address, and the ability to view and modify data.', 'The process of creating customized views in CouchDB involves installing the database, adding documents, and utilizing map functions to emit key-value pairs.', 'Demonstrating the steps of making a get request using Chrome and getting the data.', 'The importance of connecting using Curl for Windows and the process of downloading the 64-bit version with administrative privileges.', 'Replicating a local database to a remote host using CouchDB is demonstrated, highlighting the ease of replication', 'Instructions for signing up and creating an account on Cloudant are provided', 'The process of accessing the remote database using the host name is explained', 'The tutorial concludes with a plan to create a Node.js application using CouchDB']}