Skip to content

Developer Guide

David Park edited this page Oct 18, 2023 · 13 revisions

Overview

What is Pathfinder? Explain what this web-based application does.
Explain benefits of this project. What can developers earn out of this project? (Why do they need to use this?)

(Use the sidebar on the right to move to the section that you're looking for)

Tech Stack

Frontend

JavaScript, React

Backend

Sparkle, GraphDB, MongoDB

Getting Started

Setting up frontend

  • First, install dependencies by typing the following lines in the shell. (npm and yarn are required)

npm install -g yarn

yarn install

  • Then, you can start frontend by typing,

yarn start

  • To build frontend,

yarn build

  • To serve built frontend,

npx serve -s ./build

This information can also be found in README.md in frontend folder.

Setting up backend

  • To install dependencies, type the following lines in the shell.

npm install -g yarn

yarn install

  • Then, copy .env to ./backend/.env

.env includes credentials for mailing server.

  • Also start GraphDB and MongoDB by,

docker run -p 7200:7200 -d --name graphdb --restart unless-stopped -t ontotext/graphdb:10.0.2 --GDB_HEAP_SIZE=6G -Dgraphdb.workbench.maxUploadSize=2097152000

docker run --name mongo -p 27017:27017 --restart unless-stopped -d mongo:latest

  • To start backend,

yarn start

  • To allow Self-Signed Localhost certificate, in chrome, enable

chrome://flags/#allow-insecure-localhost

  • Then reboot the chrome.

This information can also be found in README.md in backend folder.

App Functions

API Reference


Move back to Table of Contents

Clone this wiki locally