This project was generated with Angular CLI version 6.0.3.
It is a sample for development stack with Angular 6, Express server and Mysql, starting point for users management.
The Express server is set to serve the application and the api requests from it.
- Installing in both directories, for the front and the back end, required node modules with npm:
npm i
- Running MySQL server. Credentials are located in:
express-mysql/.env
- JWT keys are pre-generated and located in:
express-mysql/.env
The keys are located in:
express-mysql/keys
- MySql tables have to be set. For development purposes the tables are populated with sample data. Automated DB/Tables setting scripts are located in:
express-mysql/db-init-mySql
It is required to have running (prepopulated) MySQL and the development express web server run in:
express-mysql
with:
npm run dev
In order to generate automatically builds which can be served by the Express server use:
ng build --watch
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 /express-mysql/public
directory. Use the --prod
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.