refs #5739 feat: init.sh refactor(readme): add new commands
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
9bb0261897
commit
aefef1bfa6
47
README.md
47
README.md
|
@ -8,44 +8,69 @@ Salix is also the scientific name of a beautifull tree! :)
|
||||||
|
|
||||||
Required applications.
|
Required applications.
|
||||||
|
|
||||||
* Node.js
|
|
||||||
* Docker
|
* Docker
|
||||||
* Git
|
* Git
|
||||||
|
|
||||||
You will need to install globally the following items.
|
Optional.
|
||||||
```
|
|
||||||
$ sudo npm install -g jest gulp-cli
|
- NodeJS
|
||||||
```
|
|
||||||
|
|
||||||
|
## Directory structure recommendation
|
||||||
|
- /Salix
|
||||||
|
- /back ← this project
|
||||||
|
- /front ← salix-front project
|
||||||
|
|
||||||
## Installing dependencies and launching
|
## Installing dependencies and launching
|
||||||
|
|
||||||
Pull from repository.
|
Pull from repository.
|
||||||
|
```sh
|
||||||
|
$ git clone [url] [directory]
|
||||||
|
```
|
||||||
|
|
||||||
Run this commands on project root directory to install Node dependencies.
|
Run this commands on project root directory to install Node dependencies.
|
||||||
```
|
```sh
|
||||||
$ npm install
|
$ sh init.sh
|
||||||
$ gulp install
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Launch application in developer environment.
|
Launch application in developer environment.
|
||||||
|
```sh
|
||||||
|
$ docker compose -f docker-compose.local.yml up
|
||||||
```
|
```
|
||||||
$ gulp
|
|
||||||
|
With NodeJS
|
||||||
|
```sh
|
||||||
|
$ npm run start
|
||||||
```
|
```
|
||||||
|
|
||||||
Manually reset fixtures.
|
Manually reset fixtures.
|
||||||
```
|
```sh
|
||||||
$ gulp docker
|
$ docker compose -f docker-compose.local.yml up --build
|
||||||
```
|
```
|
||||||
|
|
||||||
|
With NodeJS
|
||||||
|
```sh
|
||||||
|
$ npm run restart
|
||||||
|
```
|
||||||
## Running the unit tests
|
## Running the unit tests
|
||||||
|
|
||||||
For client-side unit tests run from project's root.
|
For client-side unit tests run from project's root.
|
||||||
|
```sh
|
||||||
|
$ sh runTestFront.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
|
With NodeJS
|
||||||
|
```sh
|
||||||
$ npm run test:front
|
$ npm run test:front
|
||||||
```
|
```
|
||||||
|
|
||||||
For server-side unit tests run from project's root.
|
For server-side unit tests run from project's root.
|
||||||
|
```sh
|
||||||
|
$ sh runTestBack.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
|
With NodeJS
|
||||||
|
```sh
|
||||||
$ npm run test:back
|
$ npm run test:back
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue