By Manikanta Panati

Learn tips to increase a whole and powerful Node, express.js and MongoDB-based net program and cellular software backend quick utilizing KeystoneJS. You’ll find out how KeystoneJS makes advanced issues basic, with out proscribing the ability or flexibility of node.js or the frameworks it really is equipped on.

Beginning KeystoneJS shows you the way to construct database-driven web pages, functions, and APIs, all outfitted upon show, the defacto internet server for Node.js that makes use of MongoDB as its garage backend.

What you are going to study

  • Discover the setup and structure of the KeystoneJS framework.
  • See how effortless it truly is to increase KeystoneJS
  • Understand the customized varieties and fields supplied out of the box
  • Write fresh markup and create templates utilizing Swig
  • Use the strong modifying suggestions within the framework's responsive dashboard

Who This e-book Is For

Technical and non-technical those that wish to construct functions speedy to leverage dependent info to enhance productivity.

Show description

Read or Download Beginning KeystoneJS: A practical introduction to KeystoneJS using a real-world project PDF

Similar object-oriented software design books

Guide to the unified process featuring UML, Java, and design patterns

The UML, or Unified Modeling Language, is the de facto usual followed via the article administration workforce (OMG) and by means of just about all owners of item modeling instruments. The Unified technique is explicitly designed to paintings with the UML and is a complete layout strategy overlaying the vast majority of the existence cycle of a software program product.

JBoss at Work: A Practical Guide

Inclusive of a few recognized open resource items, JBoss is extra a family members of interrelated companies than a unmarried monolithic software. yet, as with every device that is as feature-rich as JBoss, there are variety of pitfalls and complexities, too. so much builders fight with a similar matters while deploying J2EE functions on JBoss: they've got difficulty getting the numerous J2EE and JBoss deployment descriptors to interact; they've got hassle checking out easy methods to start; their tasks should not have a packaging and deployment procedure that grows with the appliance; or, they locate the category Loaders complicated and do not understand how to exploit them, which may reason difficulties.

Object databases in practice

Myths approximately object-oriented databases are rampant. This ebook debunks them, so database directors and bosses could make educated judgements in regards to the expertise. This ebook offers complete insurance of the "pros and cons" of object-oriented databases, assisting managers and directors come to a decision no matter if to enforce this strong know-how.

Building Web Applications with ADO.NET and XML Web Services

Easy methods to construct a data-intensive net program with XML net companies and ADO. web! Richard Hundhausen, Steven Borg, Cole Francis, and Kenneth Wilcox have mixed their years of workmanship during this worthwhile source to educate you ways a regular stressed out enterprise can leverage internet prone in B2B trade.

Extra info for Beginning KeystoneJS: A practical introduction to KeystoneJS using a real-world project

Example text

A field is a defined as a JavaScript object that has a type attribute. The type attributes must be a basic data type that Mongoose natively supports such as string, number, or it should be a KeystoneJS Field Type. Each field can have additional options that alter its behavior such as filtering and indexing. KeystoneJS fields allows you to easily add rich, functional fields to your application’s models. Adding a KeystoneJS field to our model gives us a lot of added functionality such as the following: • Rich controls in Keystone’s Admin UI • Complex data types; for example, the location field stores address and lng/lat point • Formatting and validation methods • Metadata about how fields relate to each other; for example, which fields depend on certain values in other fields Here is a list of basic data types that are mapped to their corresponding KeystoneJS field types: Data type Field type String Text Number Number Date DateTime Boolean Boolean Let us add our fields to the Product model.

Notice that when we created the Ticket model, we added the unique constraint parameter to the slug field. This way we ensure that there will be only one ticket with a slug for a given title, and thus, we can retrieve single tickets by slug. status() to return a HTTP 404 (Not found) exception if no object is found. Finally, we use the render() method to render the retrieved ticket using a template. 18 Creating Templates for Your Views We have created routes and views for our application. Now it’s time to add templates to display tickets in a user-friendly way.

In the title of the ticket, we are applying a template filter: capitalize – to uppercase the first letter of the input and lowercase the rest. You can concatenate as many template filters as you wish; each one will be applied to the output generated by the previous one. Let us also update our route to point to the ticketlist view that we created. exports = function(app) { ... ticketlist); ... } Open the command prompt and execute the command node KeystoneJS to restart the application server. 1:3000/tickets/ in your browser and you will see everything running.

Download PDF sample

Rated 4.83 of 5 – based on 41 votes