Multilingual CMS system with online shop module
- download
git clone https://github.com/cmsrs/cmsrs3.git
cd cmsrs3
- create user and database
you can run the following script:
./rs/go/go_create_user_and_db.sh
- change file .env:
cp .env.cmsrs .env
- install dependency
composer install
- laravel and jwt config (create tokens):
php artisan key:generate && php artisan jwt:secret
- create database tables and create admin user (email: adm@cmsrs.pl, pass: cmsrs123)
php artisan migrate && php artisan db:seed
- set permission
./rs/go/go_privilege.sh
- start server
php artisan serve
composer create-project cmsrs/cmsrs3
- configure db connection - change .env file.
php artisan key:generate && php artisan jwt:secret
php artisan migrate && php artisan db:seed
./rs/go/go_privilege.sh
php artisan serve
- download
git clone https://github.com/cmsrs/cmsrs3.git && cd cmsrs3
- run script
./rs/go/go_install.sh
- prepare testing:
create user and database, you can run the following script:
./rs/go/go_create_test_db.sh
cp .env .env.testing
change in file .env.testing:
APP_ENV=testing
DB_DATABASE=cmsrs_testing
LANGS="en"
CACHE_ENABLE=false
- run tests:
It is recommended to run tests on a clean instance (without images)
./rs/go/go_privilege.sh
./vendor/bin/phpunit
-
go to the website http://127.0.0.1:8000/admin/
log in as:
username: adm@cmsrs.pl
password: cmsrs123
-
create main page (page type: main_page)
-
add menu
-
add pages
- (optionally) set up langs, example:
LANGS="pl,en"
The first one will be default language. If you don't set up this directive it will be 'en'
- add api secret, example:
API_SECRET=""
It must be the same like in the admin config file (see React). It can be empty string.
- (optionally) set available page type that appear in the administration area:
The default page types are:
PAGE_TYPES="cms,gallery,shop,contact,main_page,privacy_policy,login,projects,clear,checkout,register,home,shoppingsuccess,search,forgot,inner"
- cms - apear Wyswig editor in administration area
- clear - without Wyswig editor, it require write pure html code
- inner - it is text box in existing page require hardcode in layout page, where key is short_title
- gallery - page with photos
- projects - the same content in each langs
- (optionally) additionally sending an e-mail with information from the contact form. If the value is empty, the text of the message will appear only in the administration panel in the contact tab
CONTACT_EMAIL=""
- (optionally) for google v3 reCaptcha in the contact form:
GOOGLE_RECAPTCHA_PRIV
GOOGLE_RECAPTCHA_PUBLIC
- (optionally) enable database cache:
CACHE_ENABLE=true
- PayU integration:
#https://merch-prod.snd.payu.com - sandbox
PAYU_URL=https://merch-prod.snd.payu.com
PAYU_POS_ID=123
PAYU_MD5=xxx
PAYU_CLIENT_ID=123
PAYU_CLIENT_SECRET=zzz
NOTIFY_URL=http://domain/home/orders
CUSTOMER_IP="123.123.123.123"
- (optionally) change the default login/pass admin and client:
ADM_EMAIL='adm@cmsrs.pl'
ADM_PASS='cmsrs123'
CLIENT_EMAIL='client@cmsrs.pl'
CLIENT_PASS='cmsrs456'
run:
php artisan db:seed
- logs:
tail -f -n0 storage/logs/*
- load test (demo) data:
./rs/go/go_clear_and_load_demo.sh
- create sitemap (it is recommended to put this command in the crontab file):
php artisan command:create-site-map
- create client user or edit password for user:
php artisan command:create-client {user} {password}
https://www.cmsrs.pl/en/cms/cmsrs/cmsrs-video-tutorial