wanda-engine v0.1.2

core parts of a Wanda app

Build Status GitHub release GitHub

wanda-engine

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.

Installation

  1. In the Wanda Template, add the dependency to your shard.yml:

    dependencies:
      wanda:
        github: TheEEs/wanda
        version: 0.1.1
    
  2. Run shards install

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

Development

TODO:

    1. Add support for other databases
    1. Add support for websocket
    1. Make view caching more flexible

Contributing

  1. Fork it (https://github.com/TheEEs/wanda/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • TheEEs - creator and maintainer
Repository

wanda-engine

Owner
Statistic
  • 3
  • 0
  • 0
  • 0
  • 6
  • about 5 years ago
  • September 8, 2019
License

MIT License

Links
Synced at

Wed, 25 Dec 2024 05:44:37 GMT

Languages