fanta-cli

Crates.iofanta-cli
lib.rsfanta-cli
version0.1.1
sourcesrc
created_at2018-02-08 02:49:22.120221
updated_at2018-03-01 14:11:22.974399
descriptionA cli for Fanta, the rust web framework.
homepagehttps://github.com/trezm/fanta-cli
repositoryhttps://github.com/trezm/fanta-cli
max_upload_size
id50098
size20,509
Peter Mertz (trezm)

documentation

https://github.com/trezm/fanta-cli

README

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.

Commit count: 17

cargo fmt