Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/salkuadrat/lucy
Command Line Interface (CLI) for Lucifer
https://github.com/salkuadrat/lucy
dart lucifer lucy web
Last synced: 28 days ago
JSON representation
Command Line Interface (CLI) for Lucifer
- Host: GitHub
- URL: https://github.com/salkuadrat/lucy
- Owner: salkuadrat
- License: mit
- Created: 2021-10-30T07:30:19.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-12-16T09:22:26.000Z (about 3 years ago)
- Last Synced: 2024-05-03T03:49:21.905Z (8 months ago)
- Topics: dart, lucifer, lucy, web
- Language: Dart
- Homepage: https://pub.dev/packages/lucy
- Size: 33.2 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Lucy
Simple Command Line Interface (CLI) for [Lucifer](https://pub.dev/packages/lucifer) framework.
## Installation
You may activate Lucy CLI by using the following command in your terminal:
```bash
pub global activate lucy
```## Usage
### Create New Project
To create a new Lucifer project, you may use the following Lucy command.
```bash
l create
```For example, you may use `l create` command like so:
```bash
l create desire
```It will create a new Lucifer project named desire in the `desire` directory.
### Run Project (With Hot Reload)
To run your project, you may use the following command in the root project directory:
```bash
l run
```### Build Executable
To compile your app and build an executable, you may use:
```bash
l build
```It will generate the executable file, ready to be sent to production server, in your root project directory.
### Generate Controller
To generate a controller in your Lucifer project, you may use:
```bash
l c
```For example, you may use `l c` command like so:
```bash
l c user
```It will create a `user_controller.dart` file with class `UserController` in the `lib/controller` directory.
### Generate Repository
To generate a repository in your Lucifer project, you may use:
```bash
l r
```For example, you may use `l r` command like so:
```bash
l r user
```It will create a `user_repository.dart` file with class `UserRepository` in the `lib/repository` directory.
### Create Custom Middleware
You may use the following command to generate a new custom middleware for your Lucifer project:
```bash
l m
```For example, you may use `l m` command like so:
```bash
l m auth
```It will create a `auth.dart` file containing an `auth` function to define your custom middleware in the `lib/middleware` directory.