Frontend portal for the Osmosys AI Assistant. This project was generated with Angular CLI version 17.2.0.
The portal communicates with the api for all the requests and response data.
Run npm run start
for a dev server. Navigate to http://localhost:4200/
. The application will automatically reload if you change any of the source files.
Run npm run ng generate component component-name
to generate a new component. You can also use npm run ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run npm run lint
to performing linting checks in the code.
Run npm run build
to build the project. The build artifacts will be stored in the dist/
directory.
Alternatively, run npm run build:prod
to build using production environment configuration.
-
Create a
.env
file from the provided.env.example
file and update values as required. -
Update the
graphqlEndpoint
value as required insrc/environments/environment.prod.ts
. -
Build the docker container.
docker-compose build --no-cache
-
Start the docker container in background.
docker-compose up -d
Run npm run test
to execute the unit tests via Karma.
Run npm run ng e2e
to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
To get more help on the Angular CLI use npm run ng help
or go check out the Angular CLI Overview and Command Reference page.
Before deploying the Portal with Docker, ensure that you have the following installed:
Create an .env
file and set the following value:
SERVER_PORT=5000
-
Build and Run Containers:
Open a terminal in the root directory of your Angular project and execute the following commands:
docker-compose build docker-compose up -d
-
Access the Portal:
Once the containers are running, access the Portal by navigating to
http://localhost:5000/transcript
in your web browser. If you specified a different port in yourdocker-compose.yml
file, adjust the port number accordingly. -
Stop the Containers:
To stop the running containers, use the following command:
docker-compose down
- Customize the
docker-compose.yml
file if you need to adjust port mappings or other configurations. - If your application relies on additional environment variables, you can set them in the
.env
file in the same directory as yourdocker-compose.yml
file.
We welcome contributions from the community! If you're interested in contributing to the OsmoX, please take a moment to review our Contribution Guidelines.
Your contributions help make our app even better. Whether you're a developer, designer, or just enthusiastic about enhancing user experiences, we'd love to have you on board.
Before you get started, please familiarize yourself with our guidelines to ensure a smooth collaboration process.
This project is licensed under the MIT License - see the LICENSE file for details.