mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
Server-Test
-
Cd to the server directory i.e cd
IfcOpenShell\src\bcfserver -
Set up the server by installing the dependencies
-
Run
pip install -r requirements.txtto install the dependencies -
In Python Shell, do the following
- from run import db
- db.create_all() to setup the database table
-
Run
set FLASK_APP=run.py -
Run
flask runto start the server -
Go to http://localhost:5000 to see the server
Register the user
- Go to http://localhost:5000/register to register the user
- Create the client
- For grant type enter authorization_code
- For response_type enter code secret
- Enter the scope and create the client
You will be redirected to the page with the details of your client id and secret
Foundation API
- Set the Base URL will be
http://127.0.0.1:5000/