#web-framework #component #generate #setup #cli #fanta

nightly app fanta-cli

A cli for Fanta, the rust web framework

2 releases

Uses old Rust 2015

0.1.1 Mar 1, 2018
0.1.0 Feb 8, 2018

#116 in #setup

MIT license

21KB
482 lines

Fanta Cli

A cli to setup, and generate new components for, a Fanta app.

Installation

  • Clone this repository
  • Run:
> cargo install --force

Useage

Creating a new project

This will create a new project using:

> fanta-cli init ProjectName

Note: This installs the project pointing towards the default database of

DATABASE_URL=postgres://postgres@localhost/TestApp8

This can be updated at any time in the generated .env file.

Creating a new component

> fanta-cli component User
> fanta-cli migrate

Running migrate is important because it generates schema populated from the database.

Running the app

> cargo run

Just like a normal rust project.

Dependencies

~5MB
~95K SLoC