-
-
Notifications
You must be signed in to change notification settings - Fork 71
Installation Steps (for dev)
Find a location on your computer where you want to store the project **Note: ** Make sure you have git installed locally on your computer first
git clone billyboy35/WebErpMesv2
Whenever you clone a new Laravel project you must now install all of the project dependencies. This is what actually installs Laravel itself, among other necessary packages to get started. So to install all this source code we run composer with the following command.
composer install
This will install Vue.js, Bootstrap.css, Lodash, and Laravel Mix.
npm install
Next make sure to create a new database and add your database credentials to your .env file:
DB_HOST=localhost
DB_DATABASE=like wem
DB_USERNAME= like root
DB_PASSWORD= like as you want
You will also want to update your website URL inside of the APP_URL
variable inside the .env file:
APP_URL=http://localhost:8000
Laravel requires you to have an app encryption key which is generally randomly generated and stored in your .env file.
php artisan key:generate
php artisan migrate
Lastly, we can install WEM. You can do this either with or without dummy data.
To creer des données WEMwithout dummy simply run
php artisan db:seed
or to have a full admin user :
php artisan db:seed --class=PermissionTableSeeder
php artisan db:seed --class=CreateAdminUserSeeder
note, WebErpMesv2 requires the use of the php soap & ldap extension :
Linux :
sudo apt-get update
sudo apt-get install php-soap
sudo apt-get install php-ldap
sudo systemctl restart apache2
Window : Enable the SOAP extension in the php.ini file. Open this file and uncomment the following line (remove the semicolon ; at the beginning of the line)
;extension=soap
;extension=ldap
And we're all good to go!
Start up a local development server with php artisan serve
And, visit http://localhost:8000/.