To bundle for dist, use npm run launch.
Create a file named cfg.json
in the root of the project and add the proper configuration:
{
/* [Common] Configuration to connect to the database */
"db": [
{
"label" : "default",
"host" : "localhost",
"user" : "some_user",
"password" : "some_password",
"database" : "some_db"
}
],
"secretForToken": "your custom secret salt used for token generation",
/* [Common] Configuration to send email */
"mail": { /* to use a gmail account */
"default": { /* default is used unless it's specified to use a different one */
"service": "gmail", /* gmail only, if not gmail don't set the property */
"user": "some-email@gmail.com",
"pass": "email-account-pass",
"from": "Alias to show as recipient <some-email@gmail.com>"
},
"cartera": { /* for all things in Cartera app */
"user": "some-email@gmail.com",
"pass": "email-account-pass",
"from": "Alias to show as recipient <some-email@gmail.com>",
"host": "smtp.some-host.com",
"secure": true
}
},
/* [Common] Encryption keys for all things kept as secret */
"encryption": {
"private": "some-hash",
"public": "some-other-hash"
},
/* [AppMoney] Recipients to send email */
"money-mail-to": "some-email@mail.com",
/* [AppCartera] Path to find receipts to send as email attachments */
"receipts-path": "C:\\data\\receipts-temp\\",
}
With this, you can connnect to a MySQL database.
This project was generated with Angular CLI version 7.3.0.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --configuration production
flag for a production build.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.