2017-08-30 07:42:12 +00:00
|
|
|
# Project Title
|
|
|
|
|
|
|
|
One Paragraph of project description goes here
|
|
|
|
|
|
|
|
### Prerequisites
|
|
|
|
|
|
|
|
For testing purposes you will need to install globally the following items:
|
|
|
|
npm install -g karma
|
|
|
|
npm install -g karma-cli
|
|
|
|
|
|
|
|
## Getting Started // ### Installing
|
|
|
|
|
|
|
|
Pull from repo.
|
|
|
|
|
|
|
|
install nodejs v6 or above.
|
|
|
|
|
|
|
|
install nginx globally.
|
|
|
|
|
2017-09-18 08:35:49 +00:00
|
|
|
Ask a senior dev for the datasources.development.json files required to run the project.
|
2017-08-30 07:42:12 +00:00
|
|
|
|
|
|
|
on root run:
|
|
|
|
npm install
|
2017-09-18 08:35:49 +00:00
|
|
|
gulp install
|
2017-08-30 07:42:12 +00:00
|
|
|
|
|
|
|
lauching nginx:
|
|
|
|
./dev.sh
|
|
|
|
|
|
|
|
launching frontend:
|
|
|
|
gulp client
|
|
|
|
|
|
|
|
launching backend:
|
|
|
|
gulp services
|
|
|
|
|
|
|
|
## Running the tests
|
|
|
|
|
2017-09-08 12:37:55 +00:00
|
|
|
for client-side unit tests run from project's root:
|
2017-08-30 07:42:12 +00:00
|
|
|
karma start
|
|
|
|
|
2017-09-08 12:37:55 +00:00
|
|
|
for server-side unit tests run from project's root:
|
2017-09-18 08:35:49 +00:00
|
|
|
npm run testWatch or test for single run
|
2017-09-08 12:37:55 +00:00
|
|
|
|
2017-08-30 07:42:12 +00:00
|
|
|
### Break down into end to end tests
|
|
|
|
|
2017-09-18 08:35:49 +00:00
|
|
|
on root run:
|
|
|
|
|
2017-10-31 13:14:33 +00:00
|
|
|
gulp docker
|
|
|
|
|
|
|
|
wait 10 secs for db to be ready
|
|
|
|
|
2017-09-18 08:35:49 +00:00
|
|
|
npm run e2e
|
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).
|
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
|
|
This project is licensed under the MIT License
|
|
|
|
|