aliameur / phab-pharmacy

https://phabpharmacy.com
4 stars 1 forks source link

Phab Pharmacy
Phab Pharmacy

A complete set of tools for Phab Pharmacy

✨ This workspace uses Nx

This repo contains the source code for the following projects:

Getting Started

Requirements

Follow the relevant links for installation instructions. You can verify that these are installed correctly by running the following commands:

$ node -v # v20.8.1

$ docker -v # Docker version 24.0.6, build ed223bc

$ yarn -v # 3.6.4

We recommend installing the NX CLI globally. This is not required, but it will make it easier to run commands. (if you don't install preface all nx commands with yarn)

We also recommend installing the Nx Console extensions. It provides autocomplete and UI for running tasks and generators (available for both VS Code and Jetbrains).

Set up the workspace

  1. Clone the repo:
# Using the official GitHub CLI
$ gh repo clone aliameur/phab-pharmacy

# or using git
$ git clone https://github.com/aliameur/phab-pharmacy.git
  1. Install the dependencies:
$ cd phab-pharmacy
$ yarn
  1. Populate environment variables
$ cp apps/backend/.env.template apps/backend/.env
$ cp apps/online-store/.env.template apps/online-store/.env

Start the backend

$ nx serve backend

The backend should be running at http://localhost:9000

Start the online-store

$ nx serve online-store

The online store should be running at http://localhost:4200.

Start the mobile-app

$ nx run-ios mobile-app # for ios
$ nx run-android mobile-app # for android

Start the admin

$ nx serve admin

The admin panel should be running at http://localhost:4300.

Start the assistant-api

$ nx build assistant-api
$ nx serve assistant-api

Set up Nx Cloud

Run nx connect to benefit from remote caching and task distribution.

Nx saved over 4hrs of compute time as of Jan 6.

📚 Docs

TODO

💎 Contribute

Contributions are welcome! For detailed instructions on how to contribute, please refer to our Contribution Guidelines.