mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-13 12:33:25 +02:00
* Rename get timeline squeak displays and don't filter for following * Update static build |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| .gitignore | ||
| .prettierrc | ||
| build-protos.sh | ||
| changelog.md | ||
| LICENSE.txt | ||
| make-build.sh | ||
| Makefile | ||
| package-lock.json | ||
| package.json | ||
| pb_disable-eslint.sh | ||
| README.md | ||
| yarn.lock | ||
frontend
Build protos
- Install
protocandprotoc-gen-grpc-web: https://github.com/grpc/grpc-web#code-generator-plugincurl -sSL https://github.com/protocolbuffers/protobuf/releases/download/v3.12.2/protoc-3.12.2-linux-x86_64.zip -o protoc.zip && \ unzip -qq protoc.zip && \ cp ./bin/protoc /usr/local/bin/protoc curl -sSL https://github.com/grpc/grpc-web/releases/download/1.2.1/protoc-gen-grpc-web-1.2.1-linux-x86_64 -o /usr/local/bin/protoc-gen-grpc-web && \ chmod +x /usr/local/bin/protoc-gen-grpc-web - Run
./build-protos.sh
Run in dev mode
- Build protos
- Start the squeak server with the
WEBADMIN_LOGIN_DISABLEDandWEBADMIN_ALLOW_CORSenvironment variables:$ WEBADMIN_LOGIN_DISABLED=TRUE WEBADMIN_ALLOW_CORS=TRUE NETWORK=testnet docker-compose up - Start the frontend in dev mode with the
REACT_APP_SERVER_PORTenvironment variable.$ npm install $ REACT_APP_SERVER_PORT=12994 npm start
Or run the following instead:
$ make rundev
Build for production
- Build protos
- Make the build:
$ npm install $ npm run build - Copy the generated
buildfolder intosqueaknode/admin/webapp/static/.$ cp -r build/ ../squeaknode/admin/webapp/static/
Or run the following instead:
$ make build