Wanda is a web framework aimed to make web development workflow more enjoyable and easier by mimic the best parts of Ruby on Rails. By being written in Crystal programing language, this framework also attemps to solve the performance matter of Ruby language but still give developers the same felling as if they were making app in Ruby/Rails.
Wanda-engine is core part that difine and drive structure and workflow of an wanda-based application. The engine is required by default in Wanda Template. Thanks to many other developers, the framework consists of the following shards:
- Kemal : provide handy DSLs for communicating with HTTP server.
- Jennifer.cr : ActiveRecord insprited database ORM for Crystal.
- wanda-csrf : Based on kemal-csrf, adding csrf protection to your wanda application.
- schedule.cr : running tasks at specific time.
- inflector.cr : Crystal's port of Rails's ActiveSupport
- cache: Support caching
The Wanda Framework focuses mainly on backend-development, that means how front-end stuff will be done is completely up to you. The default (and recommended) setup at Wanda Template uses VueJS(with single file components supported), axios and turbolinks. Bundled using webpack4.
In the Wanda Template, add the dependency to your
dependencies: wanda: github: TheEEs/wanda version: 0.1.1
After installation there will be two files bin/sam.cr and bin/wanda.cr lie in your project directory. bin/sam.cr is a task manager containing code for generating, destroying files, database migration, scaffolding application.
bin/wanda.cr is the entry-file of Wanda app. To run your application, type:
$ crystal bin/wanda.cr
- Add support for other databases
- Add support for websocket
- Make view caching more flexible
- Fork it (https://github.com/TheEEs/wanda/fork)
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create a new Pull Request
- TheEEs - creator and maintainer