Sha256: adfd0a3fccf19e3eab2546cccdf5fc7bc39d09b8d21fd26796404d88401d8224

Contents?: true

Size: 1.42 KB

Versions: 22

Compression:

Stored size: 1.42 KB

Contents

## Examples

    $ jets new demo
    Creating new project called demo.
          create  demo/app/controllers/application_controller.rb
          create  demo/app/helpers/application_helper.rb
          create  demo/app/jobs/application_job.rb
    ...
    ================================================================
    Congrats  You have successfully created a Jets project.

    Cd into the project directory:
      cd demo

    To start a server and test locally:
      jets server # localhost:8888 should have the Jets welcome page

    Scaffold example:
      jets generate scaffold Post title:string body:text published:boolean

    To deploy to AWS Lambda:
      jets deploy
    $

## Mode Option

The `--mode` is a notable option. With it, you can generate different starter Jets projects. Examples:

    jets new demo --mode html # default
    jets new api --mode api
    jets new cron --mode job

* The html mode generates a starter app useful for html web application.
* The api mode is useful for building an API.
* The job mode creates a very lightweight project. It is useful when you just need to run a Lambda function.

## Repo Option
Use the `--repo` flag to clone an example project from GitHub instead.  With this flag, jets new command clones a jets project repo from GitHub:

    $ jets new blog --repo tongueroo/tutorial
    $ jets new todos --repo tongueroo/todos
    $ jets new whatever --repo user/repo # any github repo

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
jets-1.8.10 lib/jets/commands/help/new.md
jets-1.8.9 lib/jets/commands/help/new.md
jets-1.8.8 lib/jets/commands/help/new.md
jets-1.8.7 lib/jets/commands/help/new.md
jets-1.8.6 lib/jets/commands/help/new.md
jets-1.8.5 lib/jets/commands/help/new.md
jets-1.8.4 lib/jets/commands/help/new.md
jets-1.8.3 lib/jets/commands/help/new.md
jets-1.8.2 lib/jets/commands/help/new.md
jets-1.8.1 lib/jets/commands/help/new.md
jets-1.8.0 lib/jets/commands/help/new.md
jets-1.7.2 lib/jets/commands/help/new.md
jets-1.7.1 lib/jets/commands/help/new.md
jets-1.7.0 lib/jets/commands/help/new.md
jets-fs-1.6.10 lib/jets/commands/help/new.md
jets-1.6.9 lib/jets/commands/help/new.md
jets-1.6.8 lib/jets/commands/help/new.md
jets-1.6.7 lib/jets/commands/help/new.md
jets-1.6.6 lib/jets/commands/help/new.md
jets-1.6.5 lib/jets/commands/help/new.md