Skip to content

This is Py-Forge! A Python Web Application using Pyramid & Autodesk Forge APIs

Notifications You must be signed in to change notification settings

leefsmp/py-forge

Repository files navigation

Py-Forge!

Description

A Python Web Application using Pyramid and Autodesk Forge Web APIs

Prerequisites

* Python 3.x

* MongoDB

Database setup

The server expect a mongoDB database named forge-rcdb running on localhost:27017

You can change those settings in development.ini:

[app:main]
# ...
mongo_uri = mongodb://localhost:27017/forge-rcdb

Database schema

Populate your database with a collection named "gallery.models" with at least one model pointing to a translated URN.

{
    "_id" : ObjectId("59f9aeedbcd28f9df393f760"),
    "name" : "Engine",
    "model" : {
        "urn" : "dXhaghj....(urn of translated model from Forge)"
    }
}

See Prepare a File for the Viewer

Project Setup

  • define following system variables initialized with your Forge credentials:

    FORGE_DEV_CLIENT_ID

    FORGE_DEV_CLIENT_SECRET

  • cd directory_containing_this_project

  • python -m venv .

  • ./bin/pip install -e .

  • ./bin/pserve development.ini --reload

Live Demo

Coming soon ...

License

MIT License

Written by

Written by Philippe Leefsma

Forge Partner Development - http://forge.autodesk.com

About

This is Py-Forge! A Python Web Application using Pyramid & Autodesk Forge APIs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published