Giter Site home page Giter Site logo

veselcraft / opensb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bluffingo/opensb

1.0 0.0 0.0 78.37 MB

The Open SquareBracket Software

Home Page: https://squarebracket.pw/

License: GNU Affero General Public License v3.0

Shell 0.58% JavaScript 6.71% PHP 58.74% Batchfile 0.04% Dockerfile 0.03% SCSS 7.71% Twig 26.19%

opensb's Introduction

OpenSB

Screen Shot 2024-06-05 at 10 47 31

How to setup an OpenSB instance.

I wouldn't recommend using this code unless if you really know what you're doing.

  1. Get an Apache server with PHP and MariaDB up and running, including Composer and the PHP GD library extension. NGINX/FreeNGINX should work, but we use Apache with squareBracket.
  2. Setup a virtual host. Look below the steps for an example.
  3. Run composer update from the terminal.
  4. Copy config.sample.php, rename it to config.php and fill in your database credentials.
  5. Import the database template found in sql/ into the database you want to use.
  6. Run the compile-scss script available in the tools directory to generate the required stylesheets. You may find Dart-Sass here at https://sass-lang.com/install/.

Production specific (partially outdated)

  1. Use Linux for anything related to production.
  2. Instead of installing dependencies using composer update you do composer update --no-dev
  3. Make the dynamic/ and templates/cache/ directories writable by your web server.
  4. Modify $branding to replace openSB branding with your custom branding. Check the public/assets/placeholder directory for reference.

Development specific

  1. Disable Twig's template caching by setting $tplNoCache to true.
  2. Enable debugging features by setting $isDebug to true.
  3. If you want to be able to upload during development, make the dynamic/ directory and the directories inside it writable by your web server.

Virtual host example

You will have to modify the directories to match your instance's location.

<VirtualHost *> 
    ServerName localhost
    DocumentRoot "C:/xampp/openSB/public"

    Alias /dynamic "C:/xampp/openSB/dynamic"

    <Directory "C:/xampp/openSB">
        Options Indexes FollowSymLinks
        Require all granted
        AllowOverride All
    </Directory>
</VirtualHost>

Questions

Why do I get 404 errors when I click on thumbnails?

Assuming you use Apache and have the rewrite module installed, this is because AllowOverride is turned off. See the virtual host example above for a quick fix.

opensb's People

Contributors

pf94 avatar forkiesassds avatar grkb-chaziz avatar rollerozxa avatar github-actions[bot] avatar dependabot[bot] avatar code-factor avatar shiypc avatar veselcraft avatar hedy88 avatar ericzhang456 avatar biggerbraintime avatar

Stargazers

Mikhail Serebryakov 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.