mustafa alternatives and similar shards
Based on the "Web Frameworks" category.
Alternatively, view mustafa alternatives based on common mentions on social networks and blogs.
9.9 0.0 mustafa VS amethystAmethyst is a Rails inspired web-framework for Crystal language
9.9 8.3 mustafa VS luckyA full-featured Crystal web framework that catches bugs for you, runs incredibly fast, and helps you write code that lasts.
9.9 5.0 mustafa VS amberA Crystal web framework that makes building applications fast, simple, and enjoyable. Get started with quick prototyping, less bugs, and blazing fast performance.
9.1 3.6 mustafa VS spider-gazelleA Rails esque web framework with a focus on speed and extensibility for crystal lang
6.6 2.8 mustafa VS runcoboAn api framework with simple, intuitive and consistent DSL, using jbuilder to render json. https://runcobo.github.io/docs/
Do you think we are missing an alternative of mustafa or a related project?
Mustafa is MVC Framework for Crystal
Please contribute project. MustafaVC Fork
Getting Started :sunglasses:
shard.yml and install lib. Yes it's ready! Build your MVC project.
For more information, you can see Mustafa Wiki
Add this to your application's
dependencies: mustafa: github: guvencenanguvenal/mustafa branch: master
call controller which name is Welcome
call controller which name is Welcome and run action(method) which name is "hello"
call controller which name is Welcome and run action(method) which name is "hello" and..
Input.params => "param1" Input.params => "param2"
Note: params is not get or post
Configuration or Use Template :mag_right:
Configuration file is config.cr on
DEFAULT_CONTROLLER = "your default controller" #this controller is default which response http://localhost/ MODULE_NAME = "your module name" VIEW_PATH = "src/your module name/view" # ./src/mustafa/view/ecr_file.ecr
and choose your localhost
LOCALHOST_ADDRESS = "0.0.0.0"
You can use Mustafa Template to faster start.
Super Simple :checkered_flag:
Model name must be capitalized case (first letter is upper, other letters is lower)
class Welcomemodel < Core::Model init Welcomemodel, Core::Model::Scope::Singleton def hello puts "hello" end end
Controller name must be capitalized case (first letter is upper, other letters is lower)
class Welcomecontroller < Core::Controller init Welcomecontroller action "index" do Core.loader.library(Customlib) do |library| library.as(Customlib).foo end Core.loader.model(Welcomemodel) do |model| model.as(Welcomemodel).hello end Core.loader.view(self, Welcomeview) end end
View has a class and an ECR File
class Welcomeview < Core::View init "Welcome.ecr" def load if (view_params["key"] == "value") puts "hello" #put hello on terminal end end end
Selam, <%= @view_params["key"] %>! # value
Run, go go go
require "mustafa" #And require your controller, view and model files module Yourproject Mustafa.run end
What's new with the new version
- Create your custom library
- Select your model scope
- New loader system
- It's now faster than before
[ ] Library improve [ ] Database Library improve [ ] Oracle Driver implement [ ] add UserControl
Please fork project MustafaVC
Thanks porras/session for session and encoder class.
Thanks logomakr.com for logo.