-
Notifications
You must be signed in to change notification settings - Fork 5
Update development notes #75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: development
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,6 +95,38 @@ Start flask with | |
docker exec -it $(docker ps -q --filter name=db) psql -U postgres bimsurfer2 | ||
~~~ | ||
|
||
## Running front- and backend locally | ||
|
||
Update and install submodules | ||
|
||
~~~ | ||
submodule init && submodule update | ||
~~~ | ||
|
||
Set environment to 'development' | ||
|
||
~~~ | ||
export environment=development | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. export is for linux/wsl, on windows use set |
||
~~~ | ||
|
||
Setup local environment with the following packages | ||
~~~ | ||
pip install lark-parser==0.12.0 numpy ifcopenshell flask flask-cors numpy gunicorn rq redis SQLAlchemy psycopg2 psycopg2cffi sqlalchemy-utils Flask-BasicAuth flasgger requests XlsxWriter requests_oauthlib Authlib requests argparse orjson --upgrade && conda install flake8 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. psycopg2 psycopg2cffi are not needed, why not use pip to install flake8 as well? |
||
~~~ | ||
|
||
Depending on the OS, change ui/package.json. For instance to 'bash run_debug.sh' in case of a linux system. | ||
~~~ | ||
"api": "cd ../application && run_no_debug.bat" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider adding |
||
~~~ | ||
|
||
Install npm, and concurrently run both the Flask backend and the React frontend. | ||
|
||
~~~ | ||
cd ui | ||
npm install | ||
npm-run-all -p start api | ||
~~~ | ||
|
||
### Observability notes | ||
|
||
#### Uploads per day | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
git submodule update --init --recursive