Using this User Interface, the client can create/read/update/delete new earring components and the earrings. The UI works with [Dama Api Service](https://github.com/R-0-m-a/dama_api_service#readme).
Technology | Description |
---|---|
Angular 12 | free and open-source web application framework, based on a TypeScript |
Angular Material 12 | User Interface (UI) component library that developers can use in their Angular projects to speed up the development of elegant and consistent user interfaces |
Bootstrap 4 | free and open-source CSS framework |
jquery | fast, small, and feature-rich JavaScript library |
Firebase | Cloud Storage for Firebase is built for app developers who need to store and serve user-generated content, such as photos or videos. |
git | Free and Open-Source distributed version control system |
Docker | A set of platform as a service products that use OS-level virtualization to deliver software in packages called containers. |
Before you can build this project, you must install and configure the following dependencies on your machine:
Node.js: We use Node to run a development web server and build the project. Depending on your system, you can install Node either from source or as a pre-packaged bundle.
After installing Node, you should be able to run the following command to install development tools. You will only need to run this command when dependencies change in package.json.
npm install
We need to specify our Environment variables for the application.
|------------------------------|
| Configuration FIREBASE |
|------------------------------|
| FIREBASE_API_KEY |
| FIREBASE_DATABASE_URL |
| FIREBASE_AUTH_DOMAIN |
| FIREBASE_PROJECT_ID |
| FIREBASE_STORAGE_BUCKET |
| FIREBASE_MESSAGING_SENDER_ID |
| FIREBASE_APP_ID |
| FIREBASE_MEASUREMENT_ID |
|------------------------------|
Run npm run start
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run npm run build --prod
to build the project. The build artifacts will be stored in the dist/
directory.
Building docker image. In order to populate our environment variables for the application, we must set relevant arguments:
docker build \
-t dama-ui:latest\
--build-arg FB_API_KEY=enter here the current data \
--build-arg FB_DATABASE_URL=enter here the current data \
--build-arg FB_AUTH_DOMAIN=enter here the current data \
--build-arg FB_PROJECT_ID=enter here the current data \
--build-arg FB_STORAGE_BUCKET=enter here the current data \
--build-arg FB_MESSAGING_SENDER_ID=enter here the current data \
--build-arg FB_APP_ID=enter here the current data \
--build-arg FB_MEASUREMENT_ID=enter here the current data .
Push a new image to a registry, run:
docker tag dama-ui registry-host/dama-ui
docker push registry-host/dama-ui
Example using a new image in docker-compose.yml:
dama-ui:
image: registry-host/dama-ui
ports:
- 8082:80