Coder Social home page Coder Social logo

spartan's Introduction

UNMAINTAINED

Banner

Delphi MVC micro-framework to fast-build your apps.

Main Topics

Getting Started

This micro-framework is intended to help Delphi developers to implement an MVC standard (or as close to that) in their projects. It will create a folder structure (Controller, Model, View and DAO), make a connection to the database, using the lambda.ini file, and map the chosen tables for the application.

Commands

The basic commands are:

  • -v : Show framework version.
  • -c : Read framework configurations stored in conf.ini file.
  • stare : Start a new Spartan application. [ name ]
  • push : Construct the base files using your configuration set. [ model | controller | dao ]

Usability

The program will work in console, so it is recommended the following steps:

Create a new "VLC Forms Application" on Delphi and can open the console in your project folder. After that, execute the command:

spartan spare .

The . tells Spartan to create the structure in the current folder. If you want to do it in another way, use:

spartan spare my_awesome_project

Now that we have the structure, let's push the files to the well, THIS IS SPAR... NO WAIT.

The push command have two others otions: model, controller and DAO. They will create the files for these folders. If you use:

spartan push [ model | controller | dao ] 

the program will show the avaliable resources to be created from your database, then use:

spartan push model TTableName
spartan push controller TTableNameController
spartan push dao TTableNameDAO

but, if you're a impulsive soldier, use:

spartan push model *
spartan push controller *
spartan push dao *

Live Examples

See Spartan in action:

Start new project


Spartan push command

SPARTANS, PUUUUUUUUUUUUUUUSH!


Spartan push command

If you don't have the files, COME AND TAKE THEM.

spartan's People

Forkers

loop80

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.