2018-02-01 14:48:19 +00:00
# Salix
2017-08-30 07:42:12 +00:00
2018-02-01 14:48:19 +00:00
This project is an Enterprise resource planning (ERP) integrated management of core business processes, in real-time and mediated by software and technology developed with the stack listed below.
2018-01-12 08:46:04 +00:00
2018-01-15 10:34:48 +00:00
Salix is also the scientific name of a beautifull tree! :)
2017-08-30 07:42:12 +00:00
2018-02-01 14:48:19 +00:00
## Prerequisites
2017-08-30 07:42:12 +00:00
2018-01-29 12:49:59 +00:00
Required applications.
2018-03-20 14:03:29 +00:00
* Visual Studio Code
2019-03-13 09:58:29 +00:00
* Node.js = 10.15.3 LTS
2018-02-01 14:48:19 +00:00
* Docker
2018-01-29 12:49:59 +00:00
2019-01-09 14:39:07 +00:00
In Visual Studio Code we use the ESLint extension. Open Visual Studio Code, press Ctrl+P and paste the following command.
2018-03-21 11:56:18 +00:00
```
2018-03-20 14:03:29 +00:00
ext install dbaeumer.vscode-eslint
2018-03-21 11:56:18 +00:00
```
2018-03-20 14:03:29 +00:00
2018-01-29 12:49:59 +00:00
You will need to install globally the following items.
```
2019-01-09 14:39:07 +00:00
# npm install -g karma-cli gulp-cli nodemon
2018-01-29 12:49:59 +00:00
```
2018-03-20 14:03:29 +00:00
## Linux Only Prerequisites
Your user must be on the docker group to use it so you will need to run this command:
```
2018-04-18 12:39:44 +00:00
$ sudo usermod -a -G docker yourusername
2018-03-20 14:03:29 +00:00
```
2017-08-30 07:42:12 +00:00
2018-02-01 14:48:19 +00:00
## Getting Started // Installing
2017-08-30 07:42:12 +00:00
2018-01-12 08:41:18 +00:00
Pull from repository.
2017-08-30 07:42:12 +00:00
2018-01-29 12:49:59 +00:00
Run this commands on project root directory to install Node dependencies.
```
2018-01-12 08:41:18 +00:00
$ npm install
$ gulp install
2018-01-29 12:49:59 +00:00
```
Launch application in developer environment.
```
$ gulp
```
2017-08-30 07:42:12 +00:00
2018-02-01 14:48:19 +00:00
Manually reset fixtures.
2018-01-29 12:49:59 +00:00
```
2018-01-12 08:41:18 +00:00
$ gulp docker
2018-01-29 12:49:59 +00:00
```
2018-01-12 08:41:18 +00:00
2018-02-01 14:48:19 +00:00
## Running the unit tests
2017-08-30 07:42:12 +00:00
2018-01-29 12:49:59 +00:00
For client-side unit tests run from project's root.
```
2018-01-12 08:41:18 +00:00
$ karma start
2018-01-29 12:49:59 +00:00
```
2017-08-30 07:42:12 +00:00
2018-01-29 12:49:59 +00:00
For server-side unit tests run from project's root.
```
2019-01-21 16:01:01 +00:00
$ gulp backTest
2018-01-29 12:49:59 +00:00
```
2017-09-08 12:37:55 +00:00
2018-02-01 14:48:19 +00:00
For end-to-end tests run from project's root.
2018-01-29 12:49:59 +00:00
```
2018-01-12 08:41:18 +00:00
$ gulp e2e
2018-01-29 12:49:59 +00:00
```
2017-10-31 13:14:33 +00:00
2017-08-30 07:42:12 +00:00
## Built With
* [angularjs ](https://angularjs.org/ )
* [nodejs ](https://nodejs.org/ )
* [webpack ](https://webpack.js.org/ )
* [loopback ](https://loopback.io/ )
* [docker ](https://www.docker.com/ )
* [gulp.js ](https://gulpjs.com/ )
2018-02-01 14:48:19 +00:00
* [Karma ](https://karma-runner.github.io/ )
* [Jasmine ](https://jasmine.github.io/ )
* [Nightmare ](http://www.nightmarejs.org/ )