Coder Social home page Coder Social logo

bmo's Introduction

BMO

Motivation

I wanted to create a responsive front-end experience using Golang and HTML templates, and although there were tools like Air that would allow live reloading, there wasn't anything available like Vite for this specific use case

What does it do?

It builds a webserver for any framework you can imagine, runs it and creates a proxy server for you, the developer, to use. This proxy server automatically refreshes the page when it detects a new update for the user.

How to use

bmo init

This command will create a bmo.toml file for you to modify

bmo's People

Contributors

siddhantmadhur avatar

Stargazers

 avatar

Watchers

 avatar

bmo's Issues

Multi-threading issues

In general very buggy with how threads are handled but here are genuine examples

  • Communication between the proxy WebSocket and runner are less than ideal
  • Sometimes two threads will try to "access" the compiled binary
    image

Delay in restarting web server

For some odd reason when killing the process for the web server, there is a few second delays before it does which means the program has to wait until it finishes before compiling and running

Some things could be optimized so for example the compiling and exiting could be run parallel so it doesn't infringe on each other's execution times.

Relevant Files:

  • runner/handle_change.go
  • runner/run.go

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.