Frontend + API server for the GraphIT project.
- download this .env file: https://files.mi.ur.de/smart-link/5001176f-e783-45c8-ae85-65895895cab1/
- save it in
api/.env
.- (set
DEV_INSTANCE
in the env file also tohttps://graphit.ur.de
if you don't have to run Wikibase locally) - however, note that you will work with the LIVE wikibase instance, so be careful not to mess up the data there
- (set
- run
npm run dev
in the project root directory to start the api and the webapp- to run on Windows:
- navigate to /api and run
npm run dev
- open a second Terminal and navigate to /frontend. Run
npm run dev
there as well - Alternative: replace the dev script in the package.json file (root) with
"start npm run dev --workspace=api & start npm run dev --workspace=frontend"
- Alternative: run the app on
wsl
(not tested)
- navigate to /api and run
- visit (http://localhost:8081/app for the webapp, http://localhost:8081/doc for the api docs)
- to run on Windows:
The app is automatically built and deployed via GitHub actions:
- push to
dev
branch: https://test.graphit.ur.de/app - push to
main
branch: https://graph.graphit.ur.de/app