jets new

Usage

jets new

Description

Creates a starter skeleton jets project.

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
$

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

Options

[--bootstrap], [--no-bootstrap]  # Install bootstrap css
                                 # Default: true
[--database=DATABASE]            # Preconfigure database (options: mysql/postgresql)
                                 # Default: mysql
[--force]                        # Bypass overwrite are you sure prompt for existing files.
[--git], [--no-git]              # Git initialize the project
                                 # Default: true
[--mode=MODE]                    # mode: html,api,job
                                 # Default: html
[--repo=REPO]                    # GitHub repo to use. Format: user/repo
[--webpacker], [--no-webpacker]  # Install webpacker
                                 # Default: true
[--noop], [--no-noop]            

Edit this page

See a typo or an error? You can improve this page. This website is available on GitHub and contributions are encouraged and welcomed. We love pull requests from you!