This guide walks you through a first time VScode setup for Baserow for developers. It will ensure you can run and debug all tests and also enable all the relevant linters and automatic style fixers to make your life as easy as possible.
This guide assumes you have a basic understanding of git, python, virtualenvs, postgres and command line tools.
git clone git@gitlab.com:baserow/baserow.git
(or your personal fork of the project)cd baserow
./config/vscode/apply_standard_baserow_vscode_config.sh
Y
and hit enter to apply the standard Baserow configmkdir $HOME/.virtualenvs; python3 -m venv $HOME/.virtualenvs/baserow
or
$HOME/.virtualenvs; virtualenv -p python $HOME/.virtualenvs/baserow
source $HOME/.virtualenvs/baserow/bin/activate
(could differ depending on your shell)which pip
and ensure the output of this command is now pointing into the
bin in your new virtualenvcd path/to/your/baserow
pip install -r backend/requirements/dev.txt -r backend/requirements/base.txt
bin/python
executablebaserow
with the password baserow
and give them
permission to create databases
https://medium.com/coding-blocks/creating-user-database-and-adding-access-on-postgresql-8bfcd2f4a91e
CREATE USER baserow WITH ENCRYPTED PASSWORD 'baserow';
ALTER USER baserow CREATEDB;
pip install psycopg2-binary
or
sudo apt install libpq-dev
backend/tests/baserow/core/test_core_models.py
for instance.baserow/web-frontend
node
.
To determine the version of Node.js to use, see the runtimeVersion
inside the
launch.json
file. E.g. if the version is v16.15.0
, you can install it with:
nvm install v16.15.0
and then enable it with nvm use v16.15.0
. Alternatively,
see baserow/docs/installation/supported.md
to determine the supported version
of Node.js to use.yarn
globally: npm install -g yarn
yarn install
to install dependencies.You can use the VSC Export & Import to install what is inside config/vscode/vsc-extensions.txt
.
Otherwise, you can manually install: