SCHEDUS is System management schedule of SENA.
- PHP 5.6.x <= (Recommend PHP 7.2 or higher) and the extensions:
- Mcrypt
- OpenSSL
- Mbstring
- Tokenizer
- FileInfo
- Web Server as:
- Apache 2.4.x or higher with rewrite engine on (mod_rewrite) (Tested) (Recommend Apache 2.4.37 or higher)
- Nginx 1.11.x or higher (No tested)
- Database that schedus supports, actually can be:
- MariaDB (Tested)
- MySQL (No tested)
- Postgres (No tested)
- SQLite (No tested)
- SQL Server (No tested)
- Composer
- Laravel 5.3 <= (Recommend Laravel 5.7 or higher)
SCHEDUS needs a web server. It doesn't matter what it is but most of the community uses Apache or Nginx and doing the same will make it easier for you to get help if you need it.
XAMPP is a program that offers us a distribution of Apache, MySQL, PHP and Perl very simple to install, manage and use. We can download it here.
WampServer refers to a software stack for the Microsoft Windows operating system, created by Romain Bourdon and consisting of the Apache web server, OpenSSL for SSL support, MySQL database and PHP programming language. We can download it here.
LAMP is an archetypal model of web service stacks, named as an acronym of the names of its original four open-source components: the Linux operating system, the Apache HTTP Server, the MySQL relational database management system (RDBMS), and the PHP programming language. The LAMP components are largely interchangeable and not limited to the original selection. As a solution stack, LAMP is suitable for building dynamic web sites and web applications
In Ubuntu or derivatives we can install it with the following commands:
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install lamp-server^
$ sudo apt-get install php5-mcrypt
$ sudo php5enmod mcrypt
After having installed our web server, it is necessary to install composer which is a very useful php dependency manager and which will be discussed later.
The easiest way to install Composer on your Windows computer is to download and execute the file Composer-Setup.exe, which installs the latest version of Composer and updates the PATH of your computer so that you can run Composer simply by typing the composer command.
$ composer -v
In ubuntu it will be enough to execute the following commands in the terminal.
$ sudo apt-get install curl
$ curl -sS https://getcomposer.org/installer | php
$ sudo mv composer.phar /usr/local/bin/composer
$ sudo echo 'PATH=$PATH:~/.composer/vendor/bin' >> ~/.profile
Open the terminal, run the following command at the terminal
$ php -i
if not haved installed PHP, get installer on PHP or wamp
if have installed PHP, but no working this command. Need configure variable Create new environment variable for PHP command For this it is enough to open the properties of the system.
Open Windows search or Windows 10 button
English: "Edit system environment variables"
Spanish: "Editar las variables de entorno del sistema"
Windows 10 "System Properties" dialog window
and find within the window the button "Environment Variables".
Windows 10 "Environment Variables" dialog window
Once inside this window it is enough to edit the system variable called Path and add a semicolon symbol (;) to the value of the variable
Windows 10 "Edit the system variable" window by editing the variable "Path.
and marking the text "C:\wamp64\bin\php\php7.3.1".
Finally we can test our installed command using the command in our terminal (cmd).
$ php -i
In the same way that we can create an environment variable for php, it is that we can do it for multiple programs such as mysql, node, mongodb and other software of our interest.
$ composer -v
if not haved installed composer, get installer on COMPOSER INSTALLER
$ npm -v
if not haved installed npm, get installer on NPM INSTALLER
$ yarn -v
if not haved installed yarn, get installer on YARN INSTALLER
Installed git on system
$ git -v
if not haved installed git, get installer on GIT INSTALLER
- Open the terminal, navigate to your project directory on Web Server for clone the project of SCHEDUS
$ git clone https://www.github.com/andgar2010/SCHEDUS2.git
- Run the following command at the terminal. Una vez instalado laravel es recomendable situarse en la raíz del proyecto y ejecutar:
$ cd SCHEDUS2
$ composer install && yarn install
- If no haved Setting the database configuration, open .env file at project root directory
DB_DATABASE=**your_db_name**
DB_USERNAME=**your_db_user**
DB_PASSWORD=**password**
- if not haved APP_KEY in .env
$ php artisan key:generate
- Run the following command at the terminal for worked page on server
$ php artisan serve
- Open the terminal, navigate to your project directory.
$ composer update
$php artisan key:generate
/admin/login
- default email : schedus@gmail.com
- default password : 123456
php artisan make:model Models/Nombre_tabla -m
parameter -m: automatically create a migration file for DB
create 2 files are:
- Model/Name_Table.php
- database/migrations/yyyy_mm_ddhhmm_create_nameTable.php
With the command is undo the last migration executed and recorded in the database.
php artisan migrate:rollback
With the command is ** Undo all** database migrations.
php artisan migrate:reset
An extra command that allows us to update the migrations is the command, the which is equivalent to using php artisan migrate:reset and then php artisan migrate.
php artisan migrate:refresh
Reoptimized class loader:
php artisan optimize
Clear Cache facade value:
php artisan cache:clear
Clear Route cache:
php artisan route:cache
Clear View cache:
php artisan view:clear
Clear Config cache:
php artisan config:cache