| Crates.io | fanta-cli |
| lib.rs | fanta-cli |
| version | 0.1.1 |
| created_at | 2018-02-08 02:49:22.120221+00 |
| updated_at | 2018-03-01 14:11:22.974399+00 |
| description | A cli for Fanta, the rust web framework. |
| homepage | https://github.com/trezm/fanta-cli |
| repository | https://github.com/trezm/fanta-cli |
| max_upload_size | |
| id | 50098 |
| size | 20,509 |
A cli to setup, and generate new components for, a Fanta app.
> cargo install --force
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.
> fanta-cli component User
> fanta-cli migrate
Running migrate is important because it generates schema populated from the database.
> cargo run
Just like a normal rust project.