fruit_jokes

Version, currently main branch1 version
  • main branchlatestJun 25, 2025

github.com/luislavena/fruit-jokes-inertia

Demo of Crystal + Inertia.js web application

0 stars
0 dependents
License: Apache-2.0

Installation

# Add this to your shard.yml
dependencies:
  fruit_jokes:
    github: luislavena/fruit-jokes-inertia
    branch: main

main is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
>= 1.15.0, < 2.0.0
License
Apache-2.0
Author
Luis Lavena
Targets
  • seed from src/fruit_jokes/seeder.cr
  • server from src/main.cr

Dependencies

Runtime Dependencies

  • vite*github: luislavena/crystal-vite
  • drift*github: luislavena/drift
  • radix*github: luislavena/radix
  • inertia~> 0.1.1github: luislavena/crystal-inertia
  • sqlite3*github: crystal-lang/crystal-sqlite3

README

Fruit Jokes

A demo web application built with Crystal and Inertia.js for managing comedians and their fruit-themed jokes.

Requirements

  • Docker
  • Docker Compose
  • Make

Getting Started

Build the project

Initialize the project by building the container and installing dependencies:

make setup

Start the application

Start the dev services by running:

make dev

After a few seconds of the compilation of the Crystal application, it should be available at http://localhost:8080

Seed the database

Database is automatically created and migrated on startup of the application, but it will be empty. You can seed the database with some sample data by running the seeder in a new terminal:

make console

Then, populate the database:

shards run seed

Play around

Now that you have some sample data, click around to explore the functionality.

Available commands

The following commands are available using the make:

  • make setup - Initialize the project (build container and install dependencies)
  • make dev - Run the application services
  • make console - Start an interactive console session
  • make restart - Restart the containers
  • make stop - Stop running containers
  • make help - Show available tasks and usage examples

License

Licensed under the Apache License, Version 2.0. You may obtain a copy of the license here.