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
-
It's a great learning experience.
-
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
- Heroku: At this time the Heroku buildpack for Crystal conflicts with the use of the
app
directory. See issue: crystal-lang/heroku-buildpack-crystal/issues/19 . Until this issue is resolved you may use an alternative one I've made: danielpclark/heroku-buildpack-crystal
Contributing
- Fork it ( https://github.com/danielpclark/railslike/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
Contributors
- danielpclark Daniel P. Clark - creator, maintainer
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.
crystal-rails-template
- 3
- 0
- 0
- 0
- 1
- over 7 years ago
- April 7, 2017
MIT License
Sat, 21 Dec 2024 16:00:18 GMT