2017-08-30 07:42:12 +00:00
# Project Title
2018-01-12 08:46:04 +00:00
Salix 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-15 10:34:48 +00:00
Salix is also the scientific name of a beautifull tree! :)
2017-08-30 07:42:12 +00:00
### Prerequisites
2018-01-29 12:49:59 +00:00
Required applications.
* Node.js >= 8.9.4
* NGINX
You will need to install globally the following items.
```
2018-01-12 08:41:18 +00:00
$ npm install -g karma
$ npm install -g karma-cli
$ npm install -g gulp
$ npm install -g webpack
2018-01-15 10:34:48 +00:00
$ npm install -g nodemon
2018-01-29 12:49:59 +00:00
```
2017-08-30 07:42:12 +00:00
## Getting Started // ### Installing
2018-01-12 08:41:18 +00:00
Pull from repository.
2017-08-30 07:42:12 +00:00
2018-01-12 08:41:18 +00:00
Ask a senior developer for the datasources.development.json files required to run the project.
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-01-29 12:49:59 +00:00
Also you can run backend and frontend as independent gulp tasks.
2017-08-30 07:42:12 +00:00
2018-01-29 12:49:59 +00:00
Launching frontend.
```
2018-01-12 08:41:18 +00:00
$ gulp client
2018-01-29 12:49:59 +00:00
```
2017-08-30 07:42:12 +00:00
2018-01-29 12:49:59 +00:00
Launching backend. It restarts NGINX and Node services.
```
2018-01-12 08:41:18 +00:00
$ gulp services
2018-01-29 12:49:59 +00:00
```
2018-01-12 08:41:18 +00:00
2018-01-29 12:49:59 +00:00
Start the local database before services on sequence.
```
$ gulp servicesDev
```
Manually reset local fixtures.
```
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-01-29 12:49:59 +00:00
To check docker images and containers status.
```
2018-01-12 08:41:18 +00:00
$ docker images
$ docker ps -a
2018-01-29 12:49:59 +00:00
```
2017-08-30 07:42:12 +00:00
## Running the tests
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.
```
2018-01-12 08:41:18 +00:00
$ npm run test
2018-01-29 12:49:59 +00:00
```
2017-09-08 12:37:55 +00:00
2017-08-30 07:42:12 +00:00
### Break down into end to end tests
2018-01-29 12:49:59 +00:00
Run local database plus e2e paths.
```
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
2018-01-29 12:49:59 +00:00
Just the e2e paths as the fixtures are untainted.
```
2018-01-12 08:41:18 +00:00
$ npm run e2e
2018-01-29 12:49:59 +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/ )
## Versioning
We use [SourceTree ](https://www.sourcetreeapp.com/ ) for versioning. For the versions available, see the [salix project ](https://git.verdnatura.es ).