GithubHelp home page GithubHelp logo

salkuadrat / lucy Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 34 KB

Command Line Interface (CLI) for Lucifer

Home Page: https://pub.dev/packages/lucy

License: MIT License

Dart 100.00%
dart web lucy lucifer

lucy's Introduction

Lucy

Simple Command Line Interface (CLI) for Lucifer framework.

Installation

You may activate Lucy CLI by using the following command in your terminal:

pub global activate lucy

Usage

Create New Project

To create a new Lucifer project, you may use the following Lucy command.

l create <project>

For example, you may use l create command like so:

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:

l run

Build Executable

To compile your app and build an executable, you may use:

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:

l c <controller>

For example, you may use l c command like so:

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:

l r <repository>

For example, you may use l r command like so:

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:

l m <middleware>

For example, you may use l m command like so:

l m auth

It will create a auth.dart file containing an auth function to define your custom middleware in the lib/middleware directory.

lucy's People

Contributors

salkuadrat avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

naoufalzerai

lucy's Issues

When try to update code and save

Lucifer 1.0.3

Starting...

Server running at http://localhost:4000

GET /user
POST /user
DELETE /user
GET /user/:id
PUT /user/:id
DELETE /user/:id
GET /

[I] TIME: 2021-11-15T10:06:27.995919
[I] TIME: 2021-11-15T10:06:28.000755 PUT /user/1
[I] TIME: 2021-11-15T10:06:28.001479 Params: {id: 1}
[I] TIME: 2021-11-15T10:06:28.027676
[I] TIME: 2021-11-15T10:06:28.045874 Response: 200 {"success":true}
Reloading...

Unhandled exception:
Bad state: StreamSink is already bound to a stream
#0 _StreamSinkImpl.addStream (dart:io/io_sink.dart:148:7)
#1 _StdSink.addStream (dart:io/stdio.dart:338:55)
#2 _run (file:///Users/jaisonjoseph/.pub-cache/hosted/pub.dartlang.org/lucy-1.0.6/bin/lucy.dart:103:10)

#3 _hotrun.. (file:///Users/jaisonjoseph/.pub-cache/hosted/pub.dartlang.org/lucy-1.0.6/bin/lucy.dart:88:19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.