更新时间:2021-07-14 10:35:44
封面
版权页
Credits
About the Author
About the Reviewer
www.PacktPub.com
eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 1. Building a Twitter-Like Application Using the MVC Design Pattern
Installing Node.js
Installing Express generator
Building the baseline
Changing the application's structure
Restructuring the views folder using partials
Adding templates for login sign-up and profile
Installing additional middleware
Refactoring the app.js file with the new middleware
Adding config and passport files
Creating a models folder and adding a user schema
Protecting routes
Creating the controllers folder
Running the application and adding comments
Summary
Chapter 2. Build a Basic Website Using MySQL Database
What we are building
Creating the baseline applications
Installing the Swig template engine
Refactoring the views folder
Creating a controllers folder
Adding partials files for head and footer
Installing and configuring Sequelize-cli
Editing the config.js file with database credentials
Creating a User scheme
Creating Band schema
Creating the database on MySql
Checking database tables
Creating the application controllers
Creating the application templates/views
Adding style to the application
Adding routes and a controller to the application
Adding database content
Creating a Bands form
Main difference between ODM (mongoose) and ORM (sequelize)
Chapter 3. Building a Multimedia Application
What we are building?
Starting with package.json
Adding baseline configuration files
Adding server folders
Configuring the app.js file
Creating the config.js file
Creating the controller's files
Creating model files
Creating view files
Creating the public folder content
Inserting images in the application using the upload form
Inserting video files into the application using the upload form
Important notes about image and video upload
Chapter 4. Dont Take a Photograph Make It – An App for Photographers
Creating the book controller
Adding a CSS framework to the application
Creating the .env.js file
How Cloudinary works
Running the application
Creating folders in the Cloudinary dashboard
URL transformation rendering
Chapter 5. Creating a Store Locator Application with MongoDB Geospatial Query
Creating the baseline application
Using the Geolocation HTML5 API
Creating the application controller
Creating models
Creating the views template
Adding locations to MongoDB
Understanding Geospatial indexes on MongoDB
Checking the Geolocation application
Ordering points by distance
Chapter 6. Building a Customer Feedback App with a Restful API and Loopback.io
Creating models with command line
Editing models after creation with command line
Creating a datasource through the command line
Connecting models to datasources
Using the API Explorer
Adding database relations
Dealing with LoopBack boot files
Consuming the API
Creating React components