cmsrs / cmsrs3
CMS/gallery/shop base on the Laravel Framework.
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 0
Open Issues: 1
Type:project
Requires
- php: ^8.0.2
- fruitcake/laravel-cors: ^2.0
- guzzlehttp/guzzle: ^7.0.1
- intervention/image: ^2.5
- laravel/framework: ^9.0
- laravel/tinker: ^2.0
- laravel/ui: ^3.0
- tomfordrumm/jwt-auth: dev-develop
Requires (Dev)
- barryvdh/laravel-debugbar: ^3.5
- fzaninotto/faker: ^1.9.1
- mockery/mockery: ^1.3.1
- nunomaduro/collision: ^6.1
- phpunit/phpunit: ^9.0
- spatie/laravel-ignition: ^1.0
This package is auto-updated.
Last update: 2024-05-18 16:28:15 UTC
README
Multilingual CMS system with online shop module
INSTALLATION (Recommended Method)
- 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
INSTALLATION BY COMPOSER
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
QUICK INSTALLATION
- download
git clone https://github.com/cmsrs/cmsrs3.git && cd cmsrs3
- run script
./rs/go/go_install.sh
RUN TESTS
- 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
MANAGMENT
-
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
CONFIGURATION .env FILE
- (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
TROUBLESHOOTING
- logs:
tail -f -n0 storage/logs/*
CLI COMMANDS
- 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}
DEMO
TUTORIALS
https://www.cmsrs.pl/en/cms/cmsrs/cmsrs-video-tutorial
MORE INFORMATION
https://www.cmsrs.pl/en/cms/cmsrs/about-cmsrs