Giter Site home page Giter Site logo

#cmsRS

##Description

CmsRS is a cms base on:

  • Yii2 advanced template
  • AngularJS v1 (administration panel)
  • CSS · Bootstrap (frontend and backend)

This is cutdown version of my cms. It is include:

  • add pages and menu
  • add content to the page
  • upload and delete image
  • set up langs
  • log in to administration panel

Db scheme:

Db scheme

The full version available on the website:

http://www.cmsrs.pl/en/cms/cmsrs/about-cmsrs

##Installation

  1. Install:

     git clone https://github.com/yiisoft/yii2-app-advanced.git
     cd yii2-app-advanced
     composer global require "fxp/composer-asset-plugin:^1.2.0"		
     composer create-project --prefer-dist yiisoft/yii2-app-advanced cmsrs
     
     cd cmsrs
     git clone https://github.com/cmsrs/cmsrs.git
     rm -rf common frontend admin; mv cmsrs/* .; rm -rf  cmsrs
    
  2. Set db:

    Change: common/config/main-local.php accordingly.

    Create table to database from temp/cmsrs4.sql in my case:

     mysql --default-character-set=utf8 -u cmsrs -ppass123456 cmsrs < ./temp/cmsrs4.sql 
    

    Insert admin user name demo/demo - to administration panel:

     INSERT INTO `user` (`id`, `username`, `auth_key`, `password_hash`, `password_reset_token`, `email`, `status`, `created_at`, `updated_at`) VALUES
     	(1, 'demo', 'u4qnlunMrSWqcyitTV06gH5C8ZlAaWar', '$2y$13$dN9ipH0Pc2zLBsDGfIkLOuZDvG0Lv5YACMWCAUIYeCHqNKfw3VbDa', NULL, '[email protected]', 10, 1428424049, 1428424049);
    
  3. Set vhosts:

    Frontend:

    url: cmsrs2.loc /path/to/yii2-app-advanced/cmsrs/frontend/web/

    Backend:

    url: cmsrs2admin.loc (it is a important name) /path/to/yii2-app-advanced/cmsrs/admin/web/

     <VirtualHost *:80>
     	ServerName cmsrs2.loc
     	DocumentRoot "/path/to/yii2-app-advanced/cmsrs/frontend/web/"
     	
     	<Directory "/path/to/yii2-app-advanced/cmsrs/frontend/web/">
            # use mod_rewrite for pretty URL support
            RewriteEngine on
            # If a directory or a file exists, use the request directly
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteCond %{REQUEST_FILENAME} !-d
            # Otherwise forward the request to index.php
            RewriteRule . index.php
    
            # use index.php as index file
            DirectoryIndex index.php
    
            # ...other settings...
     	</Directory>
    </VirtualHost>
    
    
     <VirtualHost *:80>
     	ServerName cmsrs2admin.loc  
     	DocumentRoot "/path/to/yii2-app-advanced/cmsrs/admin/web/"
     	
     	<Directory "/path/to/yii2-app-advanced/cmsrs/admin/web/">
            # use mod_rewrite for pretty URL support
            RewriteEngine on
            # If a directory or a file exists, use the request directly
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteCond %{REQUEST_FILENAME} !-d
            # Otherwise forward the request to index.php
            RewriteRule . index.php
    
            # use index.php as index file
            DirectoryIndex index.php
    
            # ...other settings...
        </Directory>
    </VirtualHost>
    
  4. Edit hosts:

     127.0.0.1 cmsrs2.loc
     127.0.0.1 cmsrs2admin.loc
    
  5. Run server side tests:

     cd temp/scripts_cli
     ./go.sh
    
  6. Config cms:

    common/config/params.php

  7. Backend:

    http://cmsrs2admin.loc/admin/#

    Create menu and pages

    example:

    list pages edit page
  8. Frontend:

    http://cmsrs2.loc/

    example:

    home page page example

Robert Szczepański's Projects

balllines icon balllines

Kulki, Ball lines, Color Lines: Move the balls to from lines of 5 or more balls of the same colour. The lines can be horizontal, vertical or diagonal.

biorhythm icon biorhythm

A simple app to calculate the biorhythm and test partner compatibility.

blog icon blog

Blog system writteln in Laravel

checkers icon checkers

Checkers with computer, checkers online, javascript html game

cmsrs icon cmsrs

cms base on YII2 and AngularJS1

cmsrs3 icon cmsrs3

cms, gallery, shop, Laravel and Vuejs

cmsrs3-react icon cmsrs3-react

CMS system with online shop module Laravel and React Redux

mean_crud icon mean_crud

crud mean = MongoDb / Express / angular 2 / Node.js

ttt icon ttt

Tic-Tac-Toe 5 in a row - Advanced tic-tac-toe on five sign for mobile or stationary devices. Game was written in html5, CSS3, JavaScript, game use technology like: Canvas, Web Worker and @font-face.

weather icon weather

get temperature from API - OpenWeatherMap - laravel project

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.