Code Monkey home page Code Monkey logo

lumichat's Introduction

Lumichat

Docker Deployment

The first time you deploy the app, you'll need to apply the migrations to the database. Run setup_db.sh to deploy and initialize the database. Afterwards, run docker compose up -d to build and deploy the app and its remaining components.

To disable the app, run docker compose down. To redeploy again in the future, run docker compose up -d.

Local Development (Linux / WSL2)

To set up a local development environment in Linux, you'll need to install a few things:

Then, run the following commands:

# Install the `libpq-dev` package
apt-get update
apt-get install -y libpq-dev

# Install the trunk build tool and wasm build target
cargo install --locked trunk
rustup target add wasm32-unknown-unknown

# Initialize the database
./setup_db.sh

# Deploy auxiliary docker services
docker compose up -d db redis llm-api

# Set environment variables
export $(cat .env | xargs)

# Build the frontend
cd front
trunk build --release # i've had issues building it on debug, so for now, just build with `--release`
cd ..

# Build & run the backend
cargo run

To redeploy changes to the backend, rerun cargo run. To redeploy changes to the frontend, cd into front and run trunk build. The new frontend changes should be accessible without restarting the backend; just force refresh the page with shift+F5.

Local Development (Windows)

Deploying a local development environment in Windows is currently unsupported.

lumichat's People

Contributors

maurdekye avatar

Watchers

 avatar  avatar

Forkers

lumiwastaken

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.