This guide walks you through a first time Intellij 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
cd baserow
./config/intellij/apply_standard_baserow_intellij_config.sh
Y
and hit enter to apply the standard Baserow configpython3 -m venv venv
or virtualenv -p python venv
source venv/bin/activate
(will 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
pip install -r backend/requirements/base.txt
module settings
:
backend
module SDK is set to the python virtualenv you just
made.Python 3.8 (baserow)
virtualenv SDK
which is red. Delete this first.bin/python
executablePython 3.8 (baserow)
so you don’t make an accidental
the backend.iml
file:baserow
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 postgresql-devel
backend/tests/baserow/core/test_core_models.py
for instance.baserow/web-frontend
yarn install
(if you do not have yarn available check out and install a
node version manager like nvm and follow the
Yarn installation instructions).
Baserow currently uses node 18Node.js and NPM
category and ensure the
Node interpreter is pointing to the desired node executableManual ESLint configuration
, have set the ESlint package
to to eslint
sub
folder in the node_modules
created by the
previous yarn install
(baserow/web-frontend/node_modules/eslint
)