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.
2021-04-16 16:35:03 +00:00
* Docker
* Git
2018-01-29 12:49:59 +00:00
2024-01-16 08:54:04 +00:00
Optional.
- NodeJS
## Directory structure recommendation
- /Salix
- /back ← this project
- /front ← salix-front project
2020-06-22 13:59:29 +00:00
2023-11-14 14:39:50 +00:00
## Installing dependencies and launching
2017-08-30 07:42:12 +00:00
2018-01-12 08:41:18 +00:00
Pull from repository.
2024-01-16 08:54:04 +00:00
```sh
$ git clone [url] [directory]
```
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.
2024-01-16 08:54:04 +00:00
```sh
$ sh init.sh
2018-01-29 12:49:59 +00:00
```
Launch application in developer environment.
2024-01-16 08:54:04 +00:00
```sh
$ docker compose -f docker-compose.local.yml up
2018-01-29 12:49:59 +00:00
```
2024-01-16 08:54:04 +00:00
With NodeJS
```sh
$ npm run start
2018-01-29 12:49:59 +00:00
```
2017-08-30 07:42:12 +00:00
2018-02-01 14:48:19 +00:00
Manually reset fixtures.
2024-01-16 08:54:04 +00:00
```sh
$ docker compose -f docker-compose.local.yml up --build
2018-01-29 12:49:59 +00:00
```
2018-01-12 08:41:18 +00:00
2024-01-16 08:54:04 +00:00
With NodeJS
```sh
$ npm run restart
```
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.
2024-01-16 08:54:04 +00:00
```sh
$ sh runTestFront.sh
2018-01-29 12:49:59 +00:00
```
2024-01-16 08:54:04 +00:00
With NodeJS
```sh
2022-05-13 16:41:53 +00:00
$ npm run test:front
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.
2024-01-16 08:54:04 +00:00
```sh
$ sh runTestBack.sh
2018-01-29 12:49:59 +00:00
```
2024-01-16 08:54:04 +00:00
With NodeJS
```sh
2022-05-13 16:41:53 +00:00
$ npm run test:back
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
```
2022-05-13 16:41:53 +00:00
$ npm run test:e2e
2018-01-29 12:49:59 +00:00
```
2017-10-31 13:14:33 +00:00
2021-04-01 11:34:21 +00:00
## Visual Studio Code extensions
2020-06-11 09:16:28 +00:00
2021-04-01 11:32:42 +00:00
Open Visual Studio Code, press Ctrl+P and paste the following commands.
2020-06-11 09:16:28 +00:00
2023-06-15 09:49:39 +00:00
In Visual Studio Code we use the ESLint extension.
2020-06-11 09:16:28 +00:00
```
ext install dbaeumer.vscode-eslint
```
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/ )
2019-09-13 14:09:14 +00:00
* [jest ](https://jestjs.io/ )
2018-02-01 14:48:19 +00:00
* [Jasmine ](https://jasmine.github.io/ )
2020-06-04 19:09:06 +00:00
* [Puppeteer ](https://pptr.dev/ )