Skip to content

Latest commit

 

History

History
106 lines (67 loc) · 2.21 KB

README.md

File metadata and controls

106 lines (67 loc) · 2.21 KB

Platform Backend

BIMData Platform Backend is the backend for the BIMData Platform application.

Technical view of the Platform

The BIMData Platform Backend is written in Python 3.

Pre-requisites

You need:

  • Python 3.9 or later

  • Poetry: Download poetry

  • a running database system: we support PostgreSQL only.

    Note: Any other DBMS compatible with Django should work, but we don't officially support it.

Install

Clone this repo

git clone https://github.com/bimdata/platform-back.git

Launch the dedicated environment

Place yourself in the proper directory and type this:

cd platform-back
poetry shell

Install all requirements with poetry

poetry install

Configure your environment

The bimdata/.env file is a representation of additionnal ENV variable in order to override default config. You can duplicate .env.example in .env and customize your config.

cp .env.example .env

Database

  • Create the database and edit the configuration file .env
  • Create the tables and populate the database:
./manage.py migrate

Create a super-user

Create a super-user (access to admin page)

./manage.py createsuperuser

Launch your local instance

Run the dev server

./manage.py runserver

Documentation

Check https://developers.bimdata.io to learn more about the Platform features. Our documentation helps you to understand the concepts and architecture of the Platform.

Need more information about the API?

Need some details about the authentication workflow?

Testing

./manage.py test to run tests

Troubleshooting

If psycopg2 is missing (Ubuntu)

Install libpq-server with your packet manager, and re-do the procedure from the dependencies installation:

sudo apt install libpq-server
poetry install

License

You are free to copy, modify, and distribute BIMData Platform Backend under the terms of the LGPL 3.0 license. See the LICENSE file for details.