featurebase/lattice
Коrd Campbell 17cb2cbb77
fixes FB-1873 (#2400)
Co-authored-by: Kord Campbell <kord@Bob.local>
Co-authored-by: Fletcher Haynes <fletcher@capitalprawn.com>
2023-01-11 16:48:03 -08:00
..
public update molecula references to featurebase (#2262) 2022-10-27 15:57:53 -05:00
src fixes FB-1873 (#2400) 2023-01-11 16:48:03 -08:00
.gitignore add gitignore to lattice folder 2021-06-03 16:40:10 -05:00
Caddyfile Copy lattice repo @8c29787 into subdirectory lattice/ 2021-05-21 14:56:55 -05:00
Dockerfile FB-1663 - fix make build-lattice failing 2022-09-13 14:10:35 -05:00
Makefile Update lattice makefile to reflect new structure 2021-05-21 14:56:55 -05:00
package.json FB-1663 - fix make build-lattice failing 2022-09-13 14:10:35 -05:00
README.md Copy lattice repo @8c29787 into subdirectory lattice/ 2021-05-21 14:56:55 -05:00
tsconfig.json Copy lattice repo @8c29787 into subdirectory lattice/ 2021-05-21 14:56:55 -05:00
tslint.json Copy lattice repo @8c29787 into subdirectory lattice/ 2021-05-21 14:56:55 -05:00
yarn.lock update molecula references to featurebase (#2262) 2022-10-27 15:57:53 -05:00

Connecting to a standalone Pilosa instance

Lattice can run independently (with e.g. yarn start; see below), connecting to any Pilosa instance. Pilosa must be started with the allowed-origins configuration parameter set to communicate with the UI.

CLI: pilosa server --handler.allowed-origins http://localhost:3000

You will need to update the lattice.config.js file and set the hostname and port of your pilosa server, otherwise it will use the browser url. The default pilosa server is localhost:10101

If you will be consistently working in the repo, it may be useful to locally ignore changes to this file to prevent accidental commits by using: git update-index --assume-unchanged src/lattice.config.js

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

Embedding Lattice within Pilosa

Lattice can be embedded within the Pilosa binary, so the UI is fully accessible directly from the server, reducing operational complexity.

If additional build dependencies yarn (brew install yarn and brew upgrade yarn perhaps) and statik (make install-statik) are available on your system, running make generate-statik before make install should produce a Pilosa binary with Lattice embedded. For up to date instructions, check the Pilosa README.