Skip to content

BIMData Platform is a web application to manage your project in the BIM ecosystem

License

Notifications You must be signed in to change notification settings

bimdata/platform-back

Repository files navigation

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.

About

BIMData Platform is a web application to manage your project in the BIM ecosystem

Resources

License

Stars

Watchers

Forks

Packages

No packages published