Git Product home page Git Product logo

0xffff-flarum's Introduction

Flarum 0x

Customized flarum for the 0xFFFF Community.

We are working on:

  1. Customisation based on the 0xFFFF Community needs.
  2. A modern, cloud-based Flarum Development & Deployment workflow.
  3. Encourage more people to participate and contribute to the Flarum Community.

Customizations

The customizations of Flarum 0x consists of these parts:

  1. Initialized Flarum Skeleton with our custom composer.json / composer.lock config (contains the extensions we are using).
  2. Patches for the extensions in vendor/ to make some small changes without publishing new Composer Packages (see patches/README.md).
  3. Custom flarum extenders in extend.php.
  4. (Will be added if needed) Custom third party extension integrated into this repo as submodules.

The features we have customised include:

  1. Support global assets CDN config.
  2. Save avatars to S3-compatible Storage instead of local disk (thanks to askvortsov1/flarum-azure-poc).
  3. Add support for blomstra/flarum-redis extension (for Queue / Cache / Session), enable the Queue Worker to consume the Background Tasks asynchronously.
  4. Add support for custom head HTML like add some <script> / <link> / <meta> tags in config.php.
  5. Customised Chinese Pinyin slug generation logic.
  6. Replace some hard-coded JsDelivr resource URLs with ByteDance's cdn (for mainland China users).
  7. All the extensions required at composer.json
  8. ...

Local Development Env Setup

We are using Development Containers with our LNMP config to save the time required to configure the environment.

Steps to configure your local development environment:

  1. Install Docker (Docker Desktop / Docker CE / OrbStack, etc...) on your dev machine.
  2. Install VSCode and Dev Containers VSCode extension.
  3. Just clone this repository and use VSCode open it, then VSCode would notify you to open the repository in the Dev Container.
  4. After the Dev Container has initialised, open http://localhost:8080 and see your Flarum app instance (It will automatically forward the ports to local).

Or you can just create a new GitHub codespace with this repo, then start development.

Production Deployment

Basically running a Flarum 0x website requires two Docker container instances.

  1. Flarum 0x, latest pre-built image: ghcr.io/0xffff-one/flarum-0x:latest.
  2. A MySQL-compatible DBMS, MySQL, MariaDB or other, use MySQL with ngram support for CJK full-text search.

We are currently using fly.io to host our website, you can also deploy them via Docker Compose.

Contribution

Any contributions are welcome. Please feel free to:

  • Open an Issue
  • Create a Pull Request
  • Comment in an Issue / PR / commit
  • Open a Discussion in 0xFFFF Forum / Discord / QQ Group

Thank you for willing to contribute to this project!

TODO

  • new Dev Envionment setup config
  • build process for Front-end Patching
  • Update latest README.md about Dev Env setup and Production deployment
  • Optimize the production Docker image config

Contributors

This project exists thanks to all the people who contribute.

Reference

License

Flarum is open-source software licensed under the MIT License.

0xffff-flarum's People

Contributors

askvortsov1 avatar billmn avatar clarkwinkelmann avatar dependabot[bot] avatar franzliedke avatar gitter-badger avatar gurjyot avatar gwillem avatar hsxfjames avatar jubianchi avatar lhsazevedo avatar luceos avatar m1guelpf avatar mecvak avatar sparanoid avatar strobotti avatar tankerkiller125 avatar tobyzerner avatar turphin avatar vsn4ik avatar zgq354 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.