The application is reachable here.
For running this project we need npm installed and mariadb on our machine. These are some tutorials to install node and mariadb in different operating systems:
Its important to install the latest version of Node:
Its important to install the latest version of mariadb:
We can install the master branch using the following commands:
git clone https://github.com/marc101101/PS_SS18_vhsLangquaid.git
This repository is made of several separate npm modules, that are installable separately:
cd PS_SS18_vhsLangquaid
Its possible to install the modules as usual using npm:
npm install
Prefered installer is yarn:
yarn install
The repo provides a bunch of different scripts to start development, to build or test the sources.
command | scripts | category | description |
---|---|---|---|
npm run start:client | ng serve | start dev. | starts angular frontend |
npm run start:server | node index.js | start dev. | starts nodejs backend server |
npm run build:client | ng build | build | builds and bundels angular sources |
npm run start:prod | ng build --prod && npm run start:server | build | builds frontend and start backend server |
npm run test:server | NODE_ENV=test mocha --exit ./server/test/*.js | test | executes backend tests |
npm run test:client | ng test | test | executes frontend tests |
npm run test:server_local | mysql.server start && NODE_ENV=test mocha --exit ./server/test/*.js && mysql.server stop | test | executes backend test against local database |
npm test | npm run test:server && npm run test:client | test | executes frontend and backend tests |
We can start the sample application backend with the following command:
npm run start:server
The development server is visible at port 8080 - http://localhost:8080/v1.
The api documentation is available unter - http://localhost:8080/docs.
For further start scripts have a look at Predefined scripts.
To run the frontend part of our code, we will use the Angular CLI:
npm run start:client
The development application is visible at port 4200 - http://localhost:4200.
For further start scripts have a look at Predefined scripts.
- Markus Guder - Github | Twitter | [email protected]
- Hans Martin Schuller - Github | [email protected]
Licensed under the MIT License.