Skip to content

Instantly share code, notes, and snippets.

@rajeshkumaravel
Last active June 2, 2020 10:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rajeshkumaravel/9cac007bc634400fbe1cd61afcb126af to your computer and use it in GitHub Desktop.
Save rajeshkumaravel/9cac007bc634400fbe1cd61afcb126af to your computer and use it in GitHub Desktop.
Running editors in portal local (Development Purpose)

Running editors in local (Development Purpore)


  • Create folder thirdparty/ under SunbirdEd-portal/src/app/client/src/
  • Download all editors from artifacts URL
  • Extract each archive to separate folder
  • Move the extracted folder(s) to thirdparty folder
  • Update environment variable file (devConfig) *
CONTENT_EDITORS_URL: {
    COLLECTION_EDITOR: '/thirdparty/collection-editor/index.html',
    CONTENT_EDITOR: '/thirdparty/content-editor/index.html',
    GENERIC_EDITOR: '/thirdparty/generic-editor/index.html'
}
  • Start the application and backend

Suggested folder structure

.
└── Sunbirded-portal
    └── /src
        └── /app
            └── /client
                └── /src
                    └── /thirdparty
                        ├── /collection-editor
                        │   └── index.html
                        ├── /content-editor
                        │   └── index.html
                        └── /generic-editor
                            └── index.html

P.S

  • Ensure
    • thirdparty/ folder is not pushed to git repository
    • CONFIG variables are not pushed to git repository
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment