Local / Development Installation

After install mysql, php, composer, nodejs, npm do below steps. If you don't know how to install these things then do some googling about to setup these tools in your Operating System.

  • After unzip the download file or git clone the application. go to application directory
  • change directory
      $ cd cloudschool
    
  • Copy sample env file and change configuration according to your need in ".env" file and create Database
      $ cp .env.example .env
    
  • Install php libraries
      $ composer install
    
  • Setup application

    • Method 1: By one command

         # setup cloudschool with out demo data
         $ php artisan fresh-install
      
         # setup cloudschool with demo data
         $ php artisan fresh-install --with-data
          # OR
         $ php artisan fresh-install -d
      
    • Method 2: Step by step

        $ php artisan storage:link
        $ php artisan key:generate --ansi
      
        # Create database tables and load essential data
        $ php artisan migrate
        $ php artisan db:seed
      
        # Load demo data
        $ php artisan db:seed --class DemoSiteDataSeeder
        $ php artisan db:seed --class DemoAppDataSeeder
      
        # Clear all caches
        $ php artisan view:clear
        $ php artisan route:clear
        $ php artisan config:clear
        $ php artisan cache:clear
      
  • Install frontend(css,js) dependency libraries and bundle them
      $ npm install
      $ npm run backend-prod
      $ npm run frontend-prod
    
  • Start development server

      $ php artisan serve
    
  • Use the app

Username Password
superadmin super99
admin demo123
  • Run laravel queue worker(Optional)

    For attendance upload, sms and email processing you need to run laravel queue worker. That's a background job and it's run separate from laravel web application. In a separate terminal run php artisan queue:work --sleep=3 . More details visit here

  • If you add/change any modules, menu, permissions in code or DB table then you must clear application cache

      $ php artisan cache:clear
    
  • To clear config, route, view related cache type below commands
      $ php artisan config:clear
    
      $ php artisan route:clear
    
      $ php artisan view:clear
    

results matching ""

    No results matching ""