This is a web project for a fret ad system.
It is written with AngularJS, Webpack, Karma, Protractor, Istanbul for the front-end. For the back-end, PHP, MySQL and Apache are used.
- Install XAMPP (https://www.apachefriends.org/fr/index.html). XAMPP is a PHP, MySQL, Apache stack.
- Install Composer (https://getcomposer.org/). For info: Composer is used to install php dependancies as npm does.
- Install Node (>8.1.0) (https://nodejs.org/en/).
- Install in global mode gulp (
npm install -g gulp-cli
)
$ git clone https://github.com/dphengsiaroun/logistic.git
$ cd logistic
$ npm i
$ cd logistic
$ cd app/ws
$ composer install
- Add at the end of the
httpd.conf
file the following:Include "conf/alias/*"
. On a XAMPP windows default installhttpd.conf
is located underC:\xampp\apache\conf
- Create the alias directory under the XAMPP Apache conf directory. Example Windows: C:\xampp\apache\conf\alias.
- Insert the following file in the conf/alias directory:
conf/alias/logistic.conf:
<Directory "D:/Replace/by/the/path/to/logistic">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Allow from all
Require all granted
</Directory>
Alias /logistic "D:/Replace/by/the/path/to/logistic"
$ cd logistic
$ cd cfg
$ cp environments.js.tmpl environments.js
Customize the newly created environments.js file.
You will find the value documented in the file.
$ cd logistic
$ gulp config
- Start the XAMPP server (both Apache and MySQL)
- Start the express server:
npm start
- Open a web browser on
http://localhost:8000/app/install
. - Check the form and click on the install button.
- The installation should be successfull, go to the website.
- It should be working.
Review the cfg/environment.js
file and check the deployment parameters.
See the documentation directly inside the file.
$ cd logistic
$ gulp config
$ gulp rebuild
$ gulp deploy
If you need to undeploy, just run gulp undeploy
.
- Open a web browser on
http://<www.your-target-site.com>/install
. - Check the form and click on the install button.
- The installation should be successfull, go to the website.
- It should be working.
Refer to the package.json
file to see test commands.
- Maite THOMIAS
- Dany PHENGSIAROUN
- Jean-Louis GUENEGO