This is the Angular frontend for the Altar.io Full-Stack Exercise.
It consumes the backend API for real-time grid/code updates and payments, and features modern Angular SPA design.
After deployment, your app will be available at:
https://junaidaziz.github.io/altar-frontend/
-
Install dependencies:
cd frontend npm install
-
Start the Angular development server:
npm start
- Default port:
http://localhost:4200/
Note: Make sure your backend API is running at the URL defined by the
API_URL
environment variable (defaults tohttp://localhost:3000
). - Default port:
-
Build for production:
npm run build
- The output will be in
frontend/dist/<your-project-name>
- The output will be in
npm start
→ Runsng serve
(development server, hot reload)npm run build
→ Builds app for production (outputs to/dist/
)npm run lint
→ Lints the codebase
- The Angular app expects the backend API URL to come from the
API_URL
environment variable.- If not provided, it falls back to
http://localhost:3000/
.
- If not provided, it falls back to
- You can override this by setting
API_URL
before running or building the application.
- CI: On every push/PR to
frontend/
, the app is built automatically (.github/workflows/frontend-ci.yml
) - CD: On every push to
main
/master
, the app is deployed to GitHub Pages (.github/workflows/frontend-cd.yml
)