Open marcodarko opened 1 year ago
To give more detail on some of what needs to be done here:
Currently, BTE has a packages/web-app
directory as part of the monorepo setup. This directory should be replaced with the React web app. In the bte workspace, packages/packages.txt
will need to be updated to ensure that the web app is properly cloned on setup. There are additional things which need to be done:
packages/bte-server
) to correctly direct to the new web app for appropriate endpointsbte-server
's dependencies with the appropriate package name, using workspace:../web-app
(see relevant package.json for examples)After all adjustments, it should be possible to both clone the web app as part of the BTE monorepo and standalone, with certain behaviors being based on whether the web app is standalone or being started as part of BTE:
localhost:3000
for starting locallyapi.bte.ncats.io
when process.env.INSTANCE_ENV
is dev
bte.ci.transltr.io
when it's ci
bte.test.transltr.io
when it's test
bte.transltr.io
when it's prod
bte.transltr.io
@marcodarko and @andrewsu can detail any pages which shouldn't be accessible when started as part of BTE, and @marcodarko can answer any questions as to internal workings of the web app, while I can answer questions relating to the internal workings of the BTE workspace.
Getting BTE set up for development can follow the NodeJS set of installation instructions for BTE. Work on this can proceed branched from main
branches (master
in the case of the web app).
sounds exciting, let me know when you all wanna talk about this and plan implementation
We first designed a landing page for a local installation of BTE that runs a UI written in Vue to test some example queries to BTE. Later on, we updated the BTE main website to have the same UI but that site was already worked on and was written in React. Now it's become apparent that we want to share most if not all of the same functionality, resources, and tools on the BTE web app in the local instance as it is more advanced and worked on. To avoid code duplication and efforts migrating code from framework to framework, I'm proposing we find a way to utilize the code from the web app here also in the BTE main code base.
Overall the transition should be smooth but some adjustments and refactoring will have to be made to configure which backend the code queries. eg.
local install > local
andwebapp > prod
and possibly hiding pages/resources.