{"repo":"joy-framework/joy","free":true,"listed":false,"github":"https://github.com/joy-framework/joy","clone":"git clone https://github.com/joy-framework/joy.git","description":"A full stack web framework written in janet","language":"Janet","stars":611,"topics":["janet-lang","janet","webframework","web-framework","sqlite","web","web-application-framework","joy"],"license":"MIT","category":"databases-storage","readme_excerpt":"You Found Joy! Joy is a full stack web framework written in janet Getting Started First make sure janet is installed Next, install the joy cli like this Hopefully the joy executable will be on your path and ready to roll. If it isn't and you're like me and use homebrew, add this to your .zprofile : Then make sure you reload the profile: Now, run the following from your terminal This should create a new directory called my-joy-project and it should create a few files and things to get you started. Taking it for a spin Now that we have a project set up, it's time to test it out in the browser: This should start an http server that's listening at http://localhost:9001. Next, let's create a database, a table and connect it with routes and a few functions for handling requests. Create a new sqlite database If you aren't already in the my-joy-project directory, go ahead and get in there. Now run This creates a new empty database named dev.sqlite3 . The default template doesn't assume you want a database so you'll need to connect to it in main.janet : Create a database table Run this to create a new migration with a table with a few columns: This has created one file in your db/migrations folder that is waiting to get applied to the database. Run database migrations Run this from your terminal This will migrate your database and create a new file db/schema.sql Generate helpful routes In joy there are no ORMs, no classes, and no objects, just functions that take requests and return r","default_branch":null,"files":null,"tree":[],"storefront":"/r/joy-framework","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/joy-framework/joy/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}