Giter Site home page Giter Site logo

beth-b2b-saas's Introduction

LOOKING TO CONTRIBUTE?

I am keeping this repo identical for people following along with the video, feel free to open an issue or a pull request on the template create-beth-app uses

This project was created using create-beth-app

To run locally:

  1. bun install
  2. create a new turso database with turso db create <name>
  3. get the database url with turso db show --url <name>
  4. get the auth token with turso db tokens create <name>
  5. (optional) create a new github developer app and get credentials
  6. copy .env.example to .env
  7. fill out all enviorment variables (refer to the config file to see schema)
  8. bun db:push
  9. bun dev

To deploy to fly.io

  1. Install the Fly CLI

  2. Run fly launch

  3. Run fly secrets set <NAME>=<VALUE> (probably want to set NODE_ENV to "production")

  4. Run fly deploy

beth-b2b-saas's People

Contributors

charliejlevine avatar dustintownsend avatar ethanniser avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

beth-b2b-saas's Issues

Possibility of adding redirect to context instead of lib

Great work ๐Ÿ‘๐Ÿผ Will definitely use this as reference for future hacks

Just wanted to know is it possible to add redirect to context with decorate app.decorate() or app.derive() ?

Since set and headers are already available in context. Instead of passing them every time, we can simply get redirect after destructuring content and using it like

redirect(
          {
            set,
            headers,
          },
          "/login",
        )

to

export const organizationsController = new Elysia({
  prefix: "/organization",
})
  .use(ctx)
  .post(
    "/",
    async ({ body, session, set, headers, turso, db, redirect }) => { // redirect 
      if (!session) {
        redirect(
          "/login",
        );
        return;
      }
   ....
   )

Issues with UnoCSS?

Hello Ethan,

Thanks for your work on this. I was wondering if you had had issues with the UnoCSS CLI? On my end it doesn't seem to properly detect changes and rebuild the output CSS file.

The watch mode will technically detect a change:

unocss v0.56.5                                                                                                            7:37:56 AM
โ— UnoCSS in watch mode...                                                                                                 7:37:56 AM
โ„น Watching for changes in src/**/*.{tsx,ts}                                                                              7:37:56 AM
change src/pages/(authed)/preview.tsx

But that will not update the output css file. Besides, it only detects a change once, and then any subsequent change to the file is not registered. I have to manually restart uno every time. Have you encountered this?

I am not really seeing anything on their github issues as I assume that not many people are using it in the way we do, but rather include Uno in their framework's build pipeline.

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.