Subscribe Now
Trending News

Blog Post

Lucky: A web framework written in Crystal
News

Lucky: A web framework written in Crystal 

#
Why is modern web development so complicated?

Have you ever thought:

  • “Why do I have to write so much boilerplate?”
  • “How do so many bugs make it to production?”
  • “Why is my app so slow!?”
  • “Why do I have to choose between fast prototyping and long term maintainability?”

#
What if you could create something quickly and maintain it for years to come?

  • Generators for quick code creation
  • Built in authentication (Optional)
  • Secure by default
  • Built in Webpack config to get an SPA off the ground fast (Optional)
  • Insanely fast execution so users aren’t left waiting
  • Powerful type system that helps catch bugs before they ever hit production

If this sounds interesting, let’s get started.

#
What does Lucky look like?

Lucky uses Action classes for handling HTTP request and responses.
The classes map the routes and parameters it handles to a response block.
Lucky can generate these classes for you with ’lucky gen.action`.

Using a class per action provides very solid
automatic error detection, as well as generation of routing, path, and link helpers and methods.

#
JSON API

class Api::Users::Show 

#
Database

# Set up the model
class User 

#
Rendering HTML

class Users::Index 

#
JavaScript Components

class Home::IndexPage 

#
Not quite ready to try Lucky?

If you’re not quite ready to dive in but want to stay up to date,
subscribe to our blog, or follow us on
Twitter
.

Read More

Related posts

© Copyright 2022, All Rights Reserved