Edit this page

Getting Started

KeystoneJS makes it easy to build database-driven websites, applications and APIs in node.js.

Under the hood, KeystoneJS uses the express.js web server framework, and a MongoDB database via the mongoose object modelling framework.

Simple vs. Flexible

Keystone is designed to make complicated things simple, without limiting the power or flexibility of node.js or the frameworks it is built on.

This guide will show you how to build a KeystoneJS website using the default project structure and options, using the keystone yeoman generator.

To learn more about how things work under the hood, and how you can extend or replace features, we strongly recommend our setting up keystone guide, or reading the source code.

Prerequisites

  1. Before you begin, make sure you have Node.js and MongoDB installed.
  2. You’ll need a reasonable working knowledge of Javascript to use KeystoneJS, as well as familiarity with basics such as database concepts, and using node / npm etc.

Where to start

If you want to get up and running quickly, check out getting started with our yeoman generator.

We also have a setting up keystone guide if you want to build or integrate keystone from scratch.

Production vs. Development

Keystone applies different settings in production and development modes. The environment will default to development, so you should set the NODE_ENV environment variable to production on your production servers for better performance.

Your app can detect which environment it is running in by calling keystone.get('env').