Blueprint
  • Blueprint Developer Guide
  • Quick Start
    • Getting Started
    • My First Application
      • Creating Your Application
      • Controllers
      • Routers & Routes
      • Services
      • Resources & Resource Controllers
      • Validating & Sanitizing Input
      • Unit Testing Your Application
      • Policies
  • Developer Guide
    • The Object Model
      • Introduction
      • Classes and Instances
      • Computed Properties
      • Aggregated Properties
      • Mixins
    • Routers and Controllers
      • Introduction
      • Routers
      • Controllers
      • Resources
    • Models
    • The Server
    • Policy Framework
    • Services
    • Messaging Framework
    • Configuration Management
    • Application and Resources
      • Lookup Operation
      • Views
      • Assets
    • Blueprint Modules
    • Blueprint Cluster
      • What is a Blueprint Cluster?
      • Running a Blueprint Cluster
      • Technical Details
    • Testing Framework
    • Command-line Interface (Coming Soon)
Powered by GitBook
On this page
  • Generating your Application
  • Starting your application
  1. Quick Start
  2. My First Application

Creating Your Application

PreviousMy First ApplicationNextControllers

Last updated 7 years ago

Generating your Application

First, we need to . The cli makes it easier to start a new Blueprint application, and implement different components of the application. When installing the cli, you want to install it globally.

Now, use the installed to generate a new application.

blueprint new super-rentals

The cli will generate a new Blueprint application in the super-rentals directory. It will also install the node modules for the application.

Starting your application

Let's make sure the super-rentals application generated correctly. Change to the newly generated directory, and run the application as follows:

node ./app

This will start the Blueprint application in development mode, and make it available at .

If you want to run the Blueprint application in a different environment mode, then use the NODE_ENV environment variable. For example, if you want to run the application in a production environment, then use the following command:

NODE_ENV=production node ./app

blueprint cli
http://localhost:5000
install the Blueprint command-line interface (cli)