Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 1.25 KB

README.md

File metadata and controls

56 lines (38 loc) · 1.25 KB

Effect Force Frontend

Local Development

Setup

  1. Clone the repo git clone git@github.com:effectai/force-frontend.git

  2. Install bun

  3. Install dependencies

bun install
  1. Run in dev mode
bun dev

Docker

It's also possible to run the frontend using Docker.

  1. Make sure you have Docker and Docker Compose installed on your system.
  2. git clone git@github.com:effectai/force-frontend.git
  3. docker compose up --build

docker compose up --build

  • --build: Forces the image to be rebuilt. This command will:
  • Build the Docker image as defined in the Dockerfile.
  • Create and start the containers as defined in the docker-compose.yml file.

Add Local Version of Effect SDK

  1. Clone the GitHub repository: https://github.com/effectai/effect-js/
  2. Install & build SDK: bun install && bun sdk:build
  3. Run inside the SDK (src) folder:
cd src
bun run link
  1. Navigate back to frontend folder:
bun link @effectai/sdk

Running the SDK with bun dev will automatically build & reload whenever a change occurs.

Note: if you've ran the frontend before without linking, it's important to clear the cache inside of the node_modules/ & .nuxt/ folders.