Няма описание

Julio Montoya 8cd85a7c69 Illustration - Refactor code, add "crop" property in ResourceFile. преди 5 години
.github 761e9bf526 Add support information as per Github recommendations преди 6 години
assets cd9a176b6d Use resource/node/links in exercise creation. преди 5 години
bin 837bba2d61 Update symfony configuration преди 5 години
certificates 7e8e04235f Update get_lang calls using full string преди 5 години
config 9f183abd0e Add "Illustration" entity to set the image of a resource. преди 5 години
custompages 7e8e04235f Update get_lang calls using full string преди 5 години
documentation 6ed802b07f Fix .htaccess rule + update installation guide #2707 преди 6 години
main 8cd85a7c69 Illustration - Refactor code, add "crop" property in ResourceFile. преди 5 години
plugin e19bfc3219 Update get_lang calls using full string. преди 5 години
public 544ac136b5 Add public/legacy.php in composer преди 5 години
src 8cd85a7c69 Illustration - Refactor code, add "crop" property in ResourceFile. преди 5 години
templates 0c6d0a5d60 fix login.html.twig преди 6 години
tests 85aa745256 Minor - format code преди 5 години
translations b35e01b61f Fix installation process преди 5 години
var cc189e6bdd Minor - remove unused code/files преди 5 години
.codeclimate.yml f36cf60988 Remove unused config settings #2682 преди 6 години
.editorconfig 4b03d5aedc Minor - update setting преди 7 години
.env e9810f9de8 Fix installation translation преди 5 години
.env.test 34b84cced9 Update symfony configuration преди 5 години
.flintci.yml 26ea363388 Minor - fix CI path преди 6 години
.gitattributes 9e84514577 Add phpstan/phpstan to check PHP fatal/warning errors преди 5 години
.gitignore 34b84cced9 Update symfony configuration преди 5 години
.htaccess 34b84cced9 Update symfony configuration преди 5 години
.php_cs 12e4f6f958 Add CI files преди 6 години
.php_cs.dist 86ae289083 Fix code related to from main/default_course_document/ преди 6 години
.scrutinizer.yml edbd849ee7 Minor - update CI config files преди 6 години
.travis.yml b39ac75c0f Minor - Travis - remove libapache2-mod-fastcgi преди 5 години
.yamllint_config 79fca38f9b Minor - Ignore files in CI преди 6 години
CODE_OF_CONDUCT.md ec24504e9f Added code of conduct (contributor-covenant.org) преди 6 години
CONTRIBUTING.md 2d55481225 Minor - Format code, update docs, update tpls, remove comment преди 6 години
LICENSE 7611bf5ac9 Add LICENSE преди 6 години
README.md 317c97846f Update README.md преди 5 години
apple-touch-icon.png 4116a6b100 merge преди 10 години
composer.json 1ea1ba373a Add Glide lib to handle image filters преди 5 години
index.php f5358a3e42 Minor - update from 1.11.x преди 5 години
license.txt cac83af385 Minor - partial merge with 1.11.x преди 6 години
package.json 96f76b7fe4 Add new exercise.js file loaded only in the exercise tool. преди 5 години
phpstan.neon 85aa745256 Minor - format code преди 5 години
robots.txt 2eae6d6b60 Minor - update robots.txt преди 6 години
ruleset.xml 728a0a507c Minor - rename CI file, flint fixes преди 6 години
user_portal.php e47df0e7ce Translation: Use full variable string преди 5 години
webpack.config.js 96f76b7fe4 Add new exercise.js file loaded only in the exercise tool. преди 5 години
whoisonline.php e47df0e7ce Translation: Use full variable string преди 5 години
whoisonlinesession.php e47df0e7ce Translation: Use full variable string преди 5 години
yarn.lock 96f76b7fe4 Add new exercise.js file loaded only in the exercise tool. преди 5 години

README.md

Chamilo 2.x

Build Status Scrutinizer Code Quality Bountysource Code Consistency CII Best Practices Codacy Badge

Chamilo is an e-learning platform, also called "LMS" or "LCMS" published under GNU/GPLv3+. It is or has been used by more than 20M people worldwide.

Quick install

Chamilo 2.0 is still in development stage. This install procedure is for reference only. For a stable Chamilo, please install Chamilo 1.11.x. See the 1.11.x branch README.md for details.

We assume you have already installed "yarn" and "composer" and you're installing the portal in a domain, not in a sub folder inside a domain.

# on a fresh Ubuntu, you can prepare your server by issuing an apt command like the following
apt update && apt -y upgrade && apt install apache2 libapache2-mod-php mariadb-client mariadb-server php-pear php-dev php-gd php-curl php-intl php-mysql php-mbstring php-zip php-xml php-cli php-apcu php-bcmath git unzip
# otherwise, you can use the following directly:
git clone https://github.com/chamilo/chamilo-lms.git chamilo2
cd chamilo2
composer install (If composer asks to accept recipes, just press enter or "n")
php bin/console fos:js-routing:dump --format=json --target=public/js/fos_js_routes.json
yarn install
yarn run encore dev
chmod -R 777 .

Then enter the main/install/index.php and follow the UI instructions (database, admin user settings, etc).

After the web install process, change the permissions back to a reasonnably safe state:

chmod -R 755 .
chown -R www-data: public/ var/

Quick update

If you have already installed it and just want to update it from Git, do:

git pull origin master
composer update
php bin/console fos:js-routing:dump --format=json --target=public/js/fos_js_routes.json
    
yarn upgrade
yarn encore dev

This will update the JS (yarn) and PHP (composer) dependencies.

Installation guide (Dev environment, stable environment not yet available)

If you are a developer and want to contribute to Chamilo in the current development branch (not stable yet), then please follow the instructions below. Please bear in mind that the development version is NOT COMPLETE at this time, and many features are just not working yet. This is because we are working on root components that require massive changes to the structure of the code, files and database. As such, to get a working version, you might need to completely uninstall and re-install from time to time. You've been warned.

First, apply the procedure described here: Managing CSS and JavaScript in Chamilo (in particular, make sure you follow the given links to install all the necessary components on your computer).

Then make sure your database supports large prefixes (see this Stack Overflow thread if you use MySQL < 5.7 or MariaDB < 10.2.2).

Load the (your-domain)/main/install/index.php URL to start the installer (which is very similar to the installer in previous versions). If the installer is pure-HTML and doesn't appear with a clean layout, that's because you didn't follow these instructions carefully. Go back to the beginning of this section and try again.

Finally, if you are installing this development version in a subdirectory, you will need to add "the folder" in the ".env" file in the root folder:

APP_URL_APPEND=the-folder

Changes from 1.x

  • app/Resources/public/assets moved to public/assets
  • main/inc/lib/javascript moved to public/js
  • main/img/ moved to public/img
  • main/template/default moved to src/Chamilo/CoreBundle/Resources/views
  • bin/doctrine.php removed use bin/console doctrine:xyz options
  • PHPMailer replaced with Swift Mailer
  • Plugin images, css and js libs are loaded inside the public/plugins folder (composer update copies the content inside plugin_name/public inside web/plugins/plugin_name
  • Plugins templates use asset() function instead of using "_p.web_plugin"
  • bower replaced by yarn

Todo

See https://github.com/chamilo/chamilo-lms/projects/3

Contributing

If you want to submit new features or patches to Chamilo 2, please follow the Github contribution guide https://guides.github.com/activities/contributing-to-open-source/ and our CONTRIBUTING.md file. In short, we ask you to send us Pull Requests based on a branch that you create with this purpose into your repository forked from the original Chamilo repository.

Documentation

For more information on Chamilo, visit https://campus.chamilo.org/documentation/index.html

Notes

You can install Yarn on Ubuntu following the instructions at https://linuxize.com/post/how-to-install-yarn-on-ubuntu-18-04/ You can install Composer on Ubuntu following the instructions at https://getcomposer.org/download/