mirror of
https://github.com/openblocks-dev/openblocks.git
synced 2025-06-24 17:15:09 +00:00
Openblocks' frontend
How to contribute
Start a local backend server
Use prebuilt docker image
Simply run below command to start a backend server.
docker run -d --name openblocks -p 3000:3000 -v "$PWD/stacks:/openblocks-stacks" openblocksdev/openblocks-ce
For more information, view our doc https://docs.openblocks.dev/self-hosting
Build Docker image from source
- Check out source code and change to source dir.
- Use the command below to build Docker image :
docker build -f ./deploy/docker/Dockerfile -t openblocks-dev .
- Start
docker run -d --name openblocks-dev -p 3000:3000 -v "$PWD/stacks:/openblocks-stacks" openblocks-dev
Start develop
- Check out source code.
- Change to client dir in the repository root via cd client.
- Run yarn to install dependencies: .
- Start dev server:
API_PROXY_TARGET=http://localhost:3000 yarn start
. - After dev server starts successfully, it will be automatically opened in the default browser.
Before submitting a pull request
In addition, before submitting a pull request, please make sure the following is done:
- If you’ve fixed a bug or added code that should be tested and add unit test suite.
- Run
yarn test
and ensure all test suites pass. - If you add new dependency, use yarn workspace openblocks some-package to make sure yarn.lock is also updated.