Welcome to the HEALTHeLINK AI Experiments Prime repository! This repository is the central hub for all code managed for HEALTHeLINK AI Experiment works. Our goal is to maintain a well-organized, scalable, and efficient monorepo that supports our diverse range of projects and technologies.
โจ This workspace has been generated by Nx, Smart Monorepos ยท Fast CI. โจ
- pnpm workspace, whose configuration is stored in
pnpm-workspace.yaml
. - The monorepo contains two packages located in the packages folder,
healthelink-ai-expr-IaC-prime
andhealthelink-docs-prime
. - opinionated
prettier
andeslint
setups.
You'll need to ensure you install the key tools that we're using before you can use this repository. Here are links to the installation guides: pnpm - https://pnpm.io/installation
Make sure you have pnpm installed. If not, you can install it globally using:
npm install -g pnpm
Follow the steps below to set up and manage the monorepo.
git clone https://github.com/HEALTHeLINK/healthelink-ai.git
cd healthelink-ai
Running the repository is fairly straight forward, although we're going to use pnpm
instead of npm or yarn. Therefore once you have cloned the repository, navigate to the root project directory and run:
pnpm install
npx nx run healthelink.ai_experiment_gpm:dev
(or)
pnpm dev
This will install the dependencies, and start the web applications, automatically triggering any dependent builds in the process.
Before you begin, make sure you have the Docker,Docker Compose and Git installed on your system
Run the bash script to install Node and additional packages.
bash bootstrap.sh
Create a secrets folder in user home directory
mkdir ~/.secrets.d/
cp packages/healthelink-ai-expr-IaC-prime/docker/secrets/env.example ~/.secrets.d/healthelink-infra.env
vim.tiny ~/.secrets.d/healthelink-infra.env [Personalize the values]
pnpm install
npx nx run healthelink-ai-expr-IaC-prime:docker_deploy
pnpm install
npx nx run healthelink-ai-expr-IaC-prime:deploy
Run npx nx graph
to show the graph of the workspace.
It will show tasks that you can run with Nx.
Inside of this project, you'll see the following folders and files:
โโโ packages
โ โโโ healthelink-ai-expr-IaC-prime
โ โโโ healthelink-docs-prime
โโโ package.json
โโโ pnpm-workspace.yaml
โโโ README.md
All commands are run from the root of the project, from a terminal:
Command | Action |
---|---|
pnpm install |
Installs dependencies |
npx nx show project healthelink.ai_experiment_gpm |
Shows available project commands (targets) in Nx Workspaces |
npx nx run healthelink.ai_experiment_gpm:dev |
Starts local dev server at localhost:4321 |
npx nx run healthelink.ai_experiment_gpm:build |
Build your production site to ./dist/ |
npx nx run healthelink.ai_experiment_gpm:preview |
Preview your build locally, before deploying |
(Alternative) pnpm dev |
Starts local development server (using pnpm) |
(Alternative) pnpm build |
Creates production build (using pnpm) |
(Alternative) pnpm preview |
Provides local preview of built website (using pnpm) |