Files
IfcOpenShell/src/foundationserver/README.md
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
844 B
Markdown
Raw Normal View History

2021-08-04 07:44:24 +05:30
# Server-Test
2021-08-06 11:20:05 +05:30
1. Cd to the server directory i.e cd `IfcOpenShell\src\bcfserver`
2021-08-04 07:44:24 +05:30
2021-08-06 11:20:05 +05:30
2. Set up the server by installing the dependencies
2021-08-04 07:44:24 +05:30
2021-08-06 11:20:05 +05:30
3. Run `pip install -r requirements.txt` to install the dependencies
2021-08-04 07:44:24 +05:30
2021-08-06 11:20:05 +05:30
4. In Python Shell, do the following
2021-08-04 07:44:24 +05:30
2021-08-06 11:20:05 +05:30
- from run import db
- db.create_all() to setup the database table
2021-08-04 07:44:24 +05:30
2021-08-06 11:20:05 +05:30
5. Run `set FLASK_APP=run.py`
6. Run `flask run` to start the server
7. Go to [http://localhost:5000](http://localhost:5000) to see the server
2021-08-04 07:44:24 +05:30
# Register the user
2021-08-06 11:20:05 +05:30
1. Go to http://localhost:5000/register to register the user
2. Create the client
3. For grant type enter authorization_code
4. For response_type enter code secret
5. Enter the scope and create the client
2021-08-04 07:44:24 +05:30
### You will be redirected to the page with the details of your client id and secret
2021-08-06 11:20:05 +05:30
# Foundation API
2021-08-04 07:44:24 +05:30
2021-08-06 11:20:05 +05:30
- Set the Base URL will be `http://127.0.0.1:5000/`