Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Getting Started with RethinkDB

You're reading from  Getting Started with RethinkDB

Product type Book
Published in Mar 2016
Publisher Packt
ISBN-13 9781785887604
Pages 176 pages
Edition 1st Edition
Languages
Author (1):
Gianluca Tiepolo Gianluca Tiepolo
Profile icon Gianluca Tiepolo
Toc

Table of Contents (15) Chapters close

Getting Started with RethinkDB
Credits
About the Author
Acknowledgement
About the Reviewer
www.PacktPub.com
Preface
1. Introducing RethinkDB 2. The ReQL Query Language 3. Clustering, Sharding, and Replication 4. Performance Tuning and Advanced Queries 5. Programming RethinkDB in Node.js 6. RethinkDB Administration and Deployment 7. Developing Real-Time Web Applications Index

Running our web application


Now that we've written all the code necessary to start our web app, we can try running it. You may remember that the app's entry-point is the app.js file.

We can start our web application by running the following command:

node app.js

If everything works correctly, you will receive no errors and get a few logging messages similar to this:

[127.0.0.1 2015-11-23T09:08:14.739Z] Setting up RethinkDB...
[127.0.0.1 2015-11-23T09:08:14.749Z] Server up and listening on port 8000

As you can see, our Node.js server is running on port 8000, so you access the web app by opening your browser and visiting http://YOUR_IP_ADDRESS:8000.

When the page loads, our web application will look as this:

You can try creating new notes by clicking on the +button and writing a message. If you open the web application in two different windows in your browser, you will see how everything you do in one window is reflected in the other. Try dragging around the note in one window, and you will see...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}