Skip to content
This repository has been archived by the owner on Feb 25, 2019. It is now read-only.

Quick Start Guide

Christian Smith edited this page Jun 10, 2014 · 4 revisions

Initial development

  1. Install CLI

    `$ npm install -g anvil-connect`
    
  2. Generate a deployment repository

    `$ nv init deployment`
    
  3. Install npm dependencies

    `$ npm install`
    
  4. Configure environments (optional)

    `{}`
    
  5. Initialize development database

    `$ nv init db`
    
  6. Create a privileged user

    ```
    $ open <authorization-uri>
    $ nv assign <email> authority
    ```
    
  7. Run the server

    `$ node server.js`
    
  8. Customize the server

Deploy to Modulus.io

  1. Complete development steps

  2. Create a project on modulus

  3. Set key pair environment variables. Copy keys/private.pem to the ANVIL_CONNECT_PRIVATE_KEY environment variable. Copy keys/public.pem to the ANVIL_CONNECT_PUBLIC_KEY variable.

    $ nv copy keys/private.pem
    $ nv copy keys/public.pem
  4. Configure production environment

    `{}`
    
  5. Deploy

    `$ modulus deploy`