This project uses Angular CLI.
Versions:
- Angular CLI: 17.3.8
- Node: 20.10.0
- Package Manager: npm 10.2.3
Before running the project, ensure you have the following installed:
- Node.js (v20.10.0) → Download
- npm (v10.2.3) → Comes with Node.js
Clone the Repository:
git clone https://github.com/syuhas/websitev2.git
cd websitev2Install Dependencies
npm installNote: This project uses a customized script and style from from the base PrismJS package to mimic VSCode highlighting for Python (
npm install @syuhas22/prismjs) Backup custom styles can be found in ./deploy/prism_custom/
Check Version Against Listed Versions
npx ng version...or if CLI is installed globally...
ng versionRunning the Development Server
Run for a dev server. Navigate to http://localhost:4200/. The application will automatically reload if you change any of the source files.
npx ng serve...or if CLI is installed globally...
ng serve- Before deploying to production server, this project is configured to be packaged locally before deployment.
- After packaging, all files from the
/distdirectory can be used for deployment.
npx ng build --configuration production...or if CLI is installed globally...
ng build --configuration production-
This project is configured to be deployed with Jenkins to Docker on EC2 with custom SSL certificates.
-
The API is served with a reverse proxy on the same server with custom SSL certificates from LetsEncrypt.
-
Edit
deploy/docker/default.confanddeploy/docker/Jenkinsfileto update domain name this will run from -
Current certs allow for
www.digitalsteve.netanddigitalsteve.net -
Infrastructure is deployed via Terraform. Ensure Terraform is installed on build server to provision resources with appropriate roles as defined in the Jenkinsfile ROLE_NAME parameter
If you run into issues installing running, some things to try:
- Try clearing the cache:
npm cache clean --force- Delete and reinstall dependencies:
rm -rf node_modules package-lock.json
npm install- if
npx ng servefails, ensure the Angular CLI is installed locally (if not installed globally):
npm install @angular/cli --save-dev