Welcome to the EAO Inspections Web application. This is an OpenShift hosted website that serves as a user and data management centre for Inspections iOS App users and the inspections data that they save.
The site provides administrators the ability to manage users, assign them to teams (each user must have a team in order to be able to conduct inspections), and the uploaded inspections data.
The site data is backed by MongoDB via the Parse Server product.
Inspections App related GitHub Project
Inspections Parse Server related GitHub Project
Please use the following steps for working on this project:
- DO NOT fork this repo because the pipeline expects branches to belong to this repo
- Clone this repo directly
- Go into branch master
- Create a branch for your work
- Checkin, commit, push to origin (Remember you didn't fork right? If you did you WILL break things, stop now and go back to step 1)
- Create a PR
Reviewers and maintainers - DO NOT MERGE the PR via GitHub, let the pipeline do this. DO NOT manually clean up branches, let the pipeline do this. Doing either of these manually will break the pipeline and cause all kinds of problems.
Also, be AWARE: if Jenkins reboots while partially through the pipeline, the input stages will be permanently broken and the job will need to be cancelled and re-run in order for the inputs to work again.
Here are the steps to follow:
- Go into the tools environment in OpenShift
- Find the Jenkins deployment and click on the URL route upper right of the deployment
- Authenticate to Jenkins
- Find the PR (the BlueOcean view is nice)
- There are several stages to go through so make sure you do not skip any
- Approve or Cancel each stage (you may need to exit the page and reload in order to see the next input prompt)
- If you approve going out to prod, don't forget to approve the final cleanup stage
This will get your changes to the correct environments and dispose branches and resources properly.
This project was generated with Angular CLI version 1.6.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 README.
[OpenShift Project Creation]
- oc login ::REPOSITORY:: [--token=::TOKEN::]
- oc new-project ::PROJECT_NAME::
- ensure .env, Dockerfile and src/environments are setup
- make ::dev|prod:: new-app
[Local Development]
- ng serve
- (or) make local (if you need to run on Docker image. Can shell into the container by ::make workspace::)
[Initial Rollout]
-
ensure that the app has been created and all configuration is setup
-
oc status ( confirm before deploy ! )
-
oc get routes ( confirm before deploy ! )
-
make ::dev|prod:: deploy