This project was generated with Angular CLI version 11.0.6.
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 --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 Overview and Command Reference page.
Frontend tech stack:
- JSF with PrimeFaces
- Angular
Backend tech stack:
- MySQL database
- Enterprise Java Beans
Instructions to run application
- ng serve
- Go to browser: localhost:4200
Code styling
- Use tab spaces
- To auto-format in VScode, use alt-shift-f
- Leave an empty line between methods
- Camel case for variable and method names
First time pulling Angular App
- Run "npm install" to install node modules
- Run above command in the Angular Application directory
Important
- When adding new features, do it on a new branch first
- Name the branch something like this: anthony/registration_feature
- Then after completed, create a pull request and if no conflict, merge with main branch
- This is to avoid merge conflicts as much as possible
How to use git branch
- Create local branch: git branch name/branch name
- Checkout to newly create branch: git checkout name/branch name
- Push local branch to github and set local branch to track remote branch: git push --set-upstream origin name/branch name
- To switch to a remote branch that is non-existent on your local machine: git checkout -t origin/branch name
WHEN PUSHING TO GITHUB
- Make sure you are pushing to the correct branch
- Check which branch your local branch is tracking: git branch -vv
- Safe method to push to correct branch: git push origin name/branch name:name/branch name, where name and branch name is the same to the left and right of the colon