Alternative admin panel for CrateDB databases
CrateDB Alt panel
Current version 0.0.2
You can see more screenshots in /screenshots
Project setup
# yarn
yarn
# npm
npm install
# pnpm
pnpm install
# bun
bun install
Run with docker
docker run -p 3000:80 surister/cratedbaltadmin:0.0.2
Solving the cors ‘issue’
In order to be able to query CrateDB’s API you will need to start the cluster with these options:
-Chttp.cors.enabled=true
-Chttp.cors.allow-origin=http://localhost:3000
https://cratedb.com/docs/crate/reference/en/5.4/config/node.html
An example in docker would be:
docker run --rm -d \
--name=crate01 \
--net=crate \
-p 4200:4200 \
--env CRATE_HEAP_SIZE=2g \
crate -Cnetwork.host=_site_ \
-Cnode.name=crate01 \
-Chttp.cors.enabled=true \
-Chttp.cors.allow-origin=http://localhost:3000
Bear in mind that if you run the admin panel from another port, it will have to match the http.cors.allow-origin
setting.