@ -54,17 +67,11 @@ description: 'Installing a development environment for different operating syste
```bash
python manage.py createsuperuser
```
```
Username (leave blank to use 'django'): ***
Email address: ***
Password: ***
Password (again): ***
```
- Install npm packages for UI and start UI debug server (run the following command from CVAT root directory):
- Install npm packages for UI (run the following command from CVAT root directory):
```bash
npm ci&& npm run start:cvat-ui
npm ci
```
> Note for Mac users
@ -75,25 +82,38 @@ description: 'Installing a development environment for different operating syste
>
> Read this article [Node Sass does not yet support your current environment](https://marketplace.visualstudio.com/items?itemName=msjsdiag.debugger-for-chrome)
- Open new terminal (Ctrl + Shift + T), run Visual Studio Code from the virtual environment
- Install [Docker Engine](https://docs.docker.com/engine/install/ubuntu/) and [Docker-Compose](https://docs.docker.com/compose/install/)
- Pull OpenPolicyAgent Docker-image (run from CVAT root dir):
```bash
source .env/bin/activate && code
sudo docker-compose -f docker-compose.yml -f docker-compose.dev.yml up cvat_opa
```
- Install following VS Code extensions:
### Run CVAT
- Start npm UI debug server (run the following command from CVAT root directory):
- If you want to run CVAT in localhost:
```sh
npm run start:cvat-ui
```
- If you want to access CVAT from outside of your host:
```sh
CVAT_UI_HOST='<YOUR_HOST_IP>' npm run start:cvat-ui
```
- Open a new terminal window.
- Run VScode from the virtual environment (run the following command from CVAT root directory):
```sh
source .env/bin/activate && code
```
- [Debugger for Chrome](https://marketplace.visualstudio.com/items?itemName=msjsdiag.debugger-for-chrome)