Giter Club home page Giter Club logo

gramberry's Introduction

gramberry

This is a WIP twilio frontend.

Local Development

tl;dr if you have cargo and npm installed, the quickest way to start is:

$ cargo install rouse
$ rouse

image

  • starts cargo watch ...
  • starts npx tailwindcss ... --watch

Backend Changes

If you're iterating on backend behavior that tests real HTTP or something else like that, I've been using this to keep the rust compilation going:

RUST_LOG=debug cargo watch -x run --ignore public
  • ๐Ÿ““ If you get tired of your login/cookies getting wiped on each recompile, you can set GRAMBERRY_SECRET somewhere. If you need a random secret, you can steal my command if you have sha256sum:
    head /dev/random | sha256sum | sed -rn "s/ +.*$//p"
    
  • RUST_LOG=debug causes lots of logging to occur, which I like. It helped me discover that my HTTP connections were not getting reused in early iterations, for example.

Frontend Changes

Template HTML changes are compiled by the rust command above, but if you are changing the tailwind classes/styles (in HTML, or in tailwind.css), then you'll want a live tailwindcss command consuming those changes and spitting out an updated public/styles.css file:

npx tailwindcss -i public/tailwind.css \
  --config public/tailwind.config.js \
  -o public/styles.css \
  --watch

gramberry's People

Contributors

jakswa avatar

Watchers

 avatar  avatar

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.