Skip to content

Installation Steps (for dev)

Kevin edited this page Sep 27, 2024 · 4 revisions

Installation Steps

1. Clone GitHub repo for this project locally

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

2. Install Composer Dependencies

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

3. Install NPM Dependencies

This will install Vue.js, Bootstrap.css, Lodash, and Laravel Mix.

npm install

4. Configure your .env file

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

5. Generate an app encryption key

Laravel requires you to have an app encryption key which is generally randomly generated and stored in your .env file.

php artisan key:generate

6. Migrate the database

php artisan migrate

7. Run The Seeder

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/.