All Projects → restyled-io → Restyled.io

restyled-io / Restyled.io

Licence: other
Restyled.io

Programming Languages

haskell
3896 projects

restyled.io

Website and backend for Restyled, https://restyled.io.

Development & Testing

  1. Start persistence services:

    docker-compose up -d
    
  2. Initialize dependencies, the database, build, lint and test:

    make bootstrap
    

From here, you can use any stack-based development and testing work-flow.

Fully-functional Website

  1. Setup local secrets in .env

    cp .env.example .env.development
    $EDITOR .env.development
    
  2. Run the site and backend locally:

    make watch
    
  3. Run ngrok:

    This is required for OAuth login and receiving webhooks from our development GitHub Application. You will need to get the ngrok authentication token out of band somehow.

    ngrok authtoken <YOUR_AUTHTOKEN>
    ngrok http -subdomain restyled 3000
    

    Visit https://restyled.ngrok.io.

End-to-end Processing

To process real restyled-io/demo Pull Requests:

  1. Ensure a Restyler image is available to use:

    To use a locally-built image:

    (cd ../restyler && docker build --tag restyled/restyler .)
    

    To use a deployed image, set RESTYLER_IMAGE and RESTYLER_TAG in .env.development.

    At this time, individual Restylers will always be pulled from deployed sources.

  2. Trigger a restyling:

    • Open a PR on restyled-io/demo,

    • Re-deliver an existing Webhook, or

    • Use curl, probably with files in fixtures/:

      curl \
        --header "Accept: application/json" \
        --header "Content-Type: application/json" \
        --data @"path/to.json" "https://restyled.ngrok.io/webhooks"
      

LICENSE

Restyled is source-available, Commons Claused licensed. For a detailed description of another project's rationale for this licensing model, one with which I agree, see here.


CHANGELOG | LICENSE | CONTRIBUTING

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].