crystal-rails-template

Crystal Rails Template

This is a sample Rails-like project written in Crystal. Technically it's Kemal but abstracted away. The goal is to organize and utilize the underlying web framework in such a way that it feels as familiar as developing in Rails itself.

This project should be considered a template and example only. This will not be versioned and will have breaking changes if you were to depend on this as a code dependency. To use this repo simply clone it and make your modifications.

Why

  1. It's a great learning experience.

  2. The Crystal language is still young and likely has many breaking changes ahead in it's future. This is already evident from the Frost project which was meant to be Rails for Crystal but hasn't been updated in about a year and stopped working with Crystal many minor versions ago. The best way to work with Crystal while it's still young and volatile is to work with simple and smaller abstractions with the minimum amount of contingency on the non-Rubyish parts of the language. This will help keep your project alive as Crystal evolves.

Development

This project is open for continued advancement towards a more Rails-like design.

Deployment

Contributing

  1. Fork it ( https://github.com/danielpclark/railslike/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

License

The MIT License (MIT)

Copyright (C) 2017 by Daniel P. Clark and Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Repository

crystal-rails-template

Owner
Statistic
  • 3
  • 0
  • 0
  • 0
  • 1
  • about 7 years ago
  • April 7, 2017
License

MIT License

Links
Synced at

Fri, 17 May 2024 19:08:26 GMT

Languages