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@github.com:baserow/baserow.gitcd 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 venvsource 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/baserowpip 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-develbackend/tests/baserow/core/test_core_models.py for instance.baserow/web-frontendyarn install (if you do not have yarn available check out and install a
node version manager like nvm and follow the
Yarn installation instructions).
See baserow/docs/installation/supported.md to determine the supported version of
Node.js to use.Node.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)