1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-04-10 23:50:12 +00:00
No description
Find a file
2020-03-31 14:15:27 +00:00
backend Resolve "Upgrade python and js dependencies." 2020-03-31 14:15:27 +00:00
sandbox implemented authentication endpoints, user login and registration 2019-07-11 17:23:10 +00:00
web-frontend Resolve "Upgrade python and js dependencies." 2020-03-31 14:15:27 +00:00
.editorconfig created vue login and register pages with validation only 2019-06-10 16:58:28 +02:00
.gitignore moved the separate database tables config to local files 2020-01-27 21:37:49 +01:00
.gitlab-ci.yml gave each project his own container 2019-10-13 11:29:00 +00:00
docker-compose.yml Resolve "Manage rows and grid data" 2020-03-24 19:22:34 +00:00
README.md splitted makefile to the backend and web-frontend 2019-09-23 09:59:42 +00:00
start_osx.sh Resolve "Manage rows and grid data" 2020-03-24 19:22:34 +00:00
stop_osx.sh made it possible to manage groups in the app 2019-08-26 17:49:28 +00:00

Baserow

To first start Baserow make sure you have installed docker and docker-compose. After that execute the following commands.

$ docker network create baserow_default
$ docker-compose up -d

If you just want to try out the application I recommend using the sandbox environment to start. First you need to open bash in the just created container and then you should navigate to the sandbox directory, start the django development server, start the nuxt development server and visit http://localhost:3000 in your browser. An example of the commands is described below.

# terminal window 1
$ docker exec -it baserow bash
$ cd /baserow/sandbox
$ yarn install
$ yarn run dev

# terminal window 2
$ docker exec -it baserow bash
$ cd /baserow/sandbox
$ python manage.py runserver 0.0.0.0:8000

Both servers should be running and if you visit http://localhost:3000 you should see a working version of Baserow.

Development

In order to start developing for the backend you need to execute the following commands.

docker exec -it baserow bash
cd /baserow/backend/src/baserow
python manage.py runserver 0.0.0.0:8000

In order to start developing for the web frontend you need to execute the following commands. Note that the backend server must also be running.

$ docker exec -it baserow bash
$ cd /baserow/web-frontend
$ yarn install
$ yarn run dev

When the development servers are on you can visit http://localhost:3000.

Testing and linting

There are a few commands you can use inside the container to test and lint parts of the code.

$ docker exec -it baserow bash
$ cd /baserow

# run pytest for the backend
$ cd backend
$ make lint

# run flake8 for the backend
$ cd backend
$ make test

# run jest for the web frontend
$ cd web-frontend
$ make test

# run eslint for the web frontend
$ cd web-frontend
$ make eslint

# run stylelint for the web frontend
$ cd web-frontend
$ make stylelint