Code Monkey home page Code Monkey logo

🚲 Bialet

Enhance HTML with a native integration to a persistent database

import "bialet" for Response
// String for the template
var title = "Welcome to Bialet"
// Query object, not a string
var user = `SELECT * FROM users WHERE id = 1`.first()
// Output the template
Response.out('
  <html>
    <head>
      <title>%( title )</title>
    </head>
    <body>
      <h1>%( title )</h1>
      <p>Hello <em>%( user["name"] )</em></p>
    </body>
  </html>
')

Bialet is a full-stack web framework that integrates the object-oriented Wren language with a single HTTP server and a built-in SQLite database, creating a unified environment for web development

Quickstart

  1. Use the Bialet Skeleton repository with Docker Compose.
git clone https://github.com/bialet/skeleton.git my-web-app
cd my-web-app
docker compose up
  1. Visit localhost:7000 in your browser.

Build

To build Bialet from source, you'll need to install certain dependencies and run the build process.

Dependencies

Debian/Ubuntu

sudo apt install -y libsqlite3-dev libssl-dev libcurl4-openssl-dev

MacOS

brew install sqlite3 openssl curl

Windows

  • libcrypto-3-x64.dll
  • libsqlite3-0.dll
  • libssl-3-x64.dll

Building the Project

After installing the dependencies, compile the project and install it:

make clean && make && make install

License

Bialet is released under the GPL 2 license, ensuring that it remains free and open-source, allowing users to modify and share the software under the same license terms.

Credits

I copy a lot of code from all over the web Bialet incorporates the work of several open-source projects and contributors. We extend our gratitude to:

  • The Wren programming language, for its lightweight, flexible, and high-performance capabilities.
  • The Mongoose library, for providing an easy-to-use web server solution.
  • Matthew Brandly, for his invaluable contributions to JSON parsing and utility functions in Wren. Check out his work at Matthew Brandly's GitHub.
  • @PureFox48 for the upper and lower functions.
  • Codeium for the Codeium plugin, ChatGPT and a lot of coffee.

We encourage users to explore these projects and recognize the efforts of their creators.

Bialet's Projects

bialet icon bialet

🚲 Bialet is a full-stack web framework made to enhance HTML with a native integration to a persistent database

skeleton icon skeleton

Use this repository to start your Bialet project, clone it or fork it

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.