This is a sample application that shows how to build a crud application. This also provides an example of securing specific pages and leveraging the session to maintain authorization.
Create a mysql database called
blog and configure the
to provide the credentials to access the table.
shards update kgen migrate up
To run the demo:
crystal build src/blog.cr ./blog
username: admin password: password
This will start an instance of mysql, migrate the database, run the specs, and launch the site at http://localhost:3000
Note: The Docker image is compatible with Heroku.