Learning Node.js for mobile application development : make use of Node.js to develop of a simple yet scalable cross-platform mobile application /
Make use of Node.js to learn the development of a simple yet scalable cross-platform mobile application About This Book Use Node.js to satisfy the core backend requirements of modern apps, including user management, security, data access, and real-time data communication Build practical real-world m...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Otros Autores: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Publishing,
2015.
|
Edición: | First edition. |
Colección: | Community experience distilled.
|
Temas: | |
Acceso en línea: | Texto completo (Requiere registro previo con correo institucional) |
Tabla de Contenidos:
- Cover; Copyright; Credits; About the Authors; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Setting Up Your Workspace; The Node.js backend; Installing Node.js on different systems; Windows; Linux; Ubuntu/Debian; Fedora/RHEL/CentOS; Verifying your installation; Mac OS X; Verifying your installation; Setting up the Ionic framework and Cordova for Mac OS X; Setting up the Ionic framework and Cordova for Windows; Setting up the platform dependencies; Installing Java; Setting up Android Studio for Android, Mac, and Windows.
- Setting up the Android Software Development KitSetting up your physical Android device for development; Enabling Developer options; Enabling USB debugging; Trusting a computer with installed IDE using secure USB debugging (devices with Android 4.4.2); Setting up the Environment Variables on Windows 7 and higher; Setting up the Environment Variables for iOS on Mac OS X; Installing the iOS SDK; MongoDB; Installation of MongoDB on different Operating System; Windows; Linux; Ubuntu; Fedora/RHEL/CentOS; Starting MongoDB; Mac OS X; Windows; Linux and OSX; Summary.
- Chapter 2: Configuring Persistence with MongoDBLearning outcomes of MongoDB; An introduction to MongoDB; Documents; Collections; Databases; An example
- a product order database; Connecting to MongoDB; Linux and Mac OS X; Windows; Creating a database; Creating our collections; Creating relations between documents; Querying MongoDB; Searching by ID; Searching by property value; Advanced queries; Connecting MongoDB and Node.js; Setting up a basic project; Connecting to MongoDB; Summary; Chapter 3: Creating an API; Learning outcomes of the RESTful API; RESTing easy; It's all hypermedia; GET.
- GET allGET by ID; POST; PUT; DELETE; Building a RESTful API with Node.js; Setting up the RESTful API; The HTTP module; Dissecting the HTTP server; Returning JSON; Implementing our GET handlers; Implementing a router; Implementing our POST handlers; Implementing the DELETE and PUT handlers; Testing the API; Moving forward; Summary; Chapter 4: Securing Your Backend; Understanding the outcomes of token-based authentication; The theoretical bit; A small token of trust; Playing your role; Putting it all together; Implementation; Adding the new collections; Adding an authentication module.
- Creating functions to register and help users log inRegistering users; Enabling users to log in; Extending our API; OAuth; Time-stamped access tokens; Hashing passwords; Summary; Chapter 5: Real-Time Data and WebSockets; Polling; WebSockets; Using WebSockets in Node.js; Setting up our project; Installing socket.io; Creating a chat interface; A basic file server; An alternate chat; The efficient serving of static files; Summary; Chapter 6: Introducing Ionic; Setting up your Ionic web account; Creating your first Ionic application; Checking out your Ionic applications with Ionic View.