-
Notifications
You must be signed in to change notification settings - Fork 11
Development
meta-d edited this page Mar 14, 2024
·
2 revisions
- Clone repo
git clone https://github.com/meta-d/ocap.git - Change directory
cd ocap
- Make sure you have Docker Compose installed locally.
- Copy
.env.composefile into.envfile in the root of mono-repo (the file contains default env variables definitions). - Run
docker-compose -f docker-compose.demo.yml up, if you want to run the platform using our prebuild Docker images. (Note: it uses latest images pre-build automatically from head ofdevelopbranch using GitHub CI/CD.) - Run
docker-compose up, if you want to build everything (code and Docker images) locally. (Note: this is extremely long process, option above is much faster.) - Open http://localhost:4200 in your browser.
- The first time you will enter the onborading page. Follow the prompts to complete the initial settings ( organization, samples and connect your data source), and then you can start using it.
- Enjoy!
If you are in China, you can use the following command to speed up the download of Docker images:
docker-compose -f docker-compose.demo_cn.yml up
If you want to run the platform manually, you can follow the steps below.
- Install NodeJs LTS version or later, e.g. 18.x.
- Install Yarn (if you don't have it) with
npm i -g yarn. - Install NPM packages and bootstrap solution using the command
yarn bootstrap. - Copy
.env.localfile into.envand adjust settings in the file which is used in local runs. - Run command
docker-compose -f docker-compose.dev.yml up -dto start PostgreSQL database and redis services. - Run both API, UI and OLAP engine with a single command:
yarn start, or run them separately withyarn start:api,yarn start:cloudandyarn start:olap. - Open Metad UI on http://localhost:4200 in your browser (API runs on http://localhost:3000/api).
- Onboarding...
- Enjoy!
docker-compose -f docker-compose-doris.yml up -d
docker-compose -f docker-compose.dev.yml up -dBefore commit/push the code, please ensure the project is built correctly, execute the following command:
yarn builddocker build -f ./.deploy/webapp/Dockerfile -t metadc/ocap-webapp-demo:latest .