Skip to content

backbee/standalone

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.

Standalone version

1) Requirements

  • PHP 7.4
  • MySQL 5.7 OR MariaDB 10.1
  • Nginx or Apache with mod_rewrite module
  • HTTPS support
  • Elasticsearch 7.14
  • Redis 6.0 or greater
  • ImageMagick 6.9 or greater (Images optimization)
  • npm 8 or greater (Assets compilation)

2) Preparation

Install libraries for image optimizer:

RPM like flavor (use yum or dnf depending on your environment):

yum install -y ImageMagick

Debian like flavor:

apt-get install -y imagemagick

Install libraries for assets compilation

Note: setup_current.x refers to node current active release, can be modified (ex: https://deb.nodesource.com/setup_16.x for release 16.x) according your requirements.

RPM like flavor (yum or dnf depending on your environment):

curl -sL https://rpm.nodesource.com/setup_current.x | sudo -E bash - & sudo yum install -y nodejs

Debian like flavor:

curl -sL https://deb.nodesource.com/setup_current.x | sudo -E bash - && sudo apt-get install -y nodejs

3) Project installation

  1. Backbee standalone repository clone
git clone "standalone_repositories"
  1. Dependencies installation
composer up
  1. Site installation
bin/console backbee:install
  1. BO's assets installation
bin/console backbee:ia
  1. Libraries installation for assets compilation
cd assets
npm install
  1. Assets compilation (must be done once and then every time assets are modified or updated in the assets folder)
gulp

4) App

Place your project PHP code under App\ namespace (src/App/).

If you want to add:

  • Templates, do it under res/templates/
  • ClassContent, do it under res/classcontents/
  • Layout templates files, do it under res/layouts/
  • Helper, do it under res/helpers

5) Apache & Nginx Configuration

Configuration files for Apache vhost or Nginx server can be found in:

  • res/dist/apache.conf.dist for Apache
  • res/dist/nginx.conf.dist for Nginx