Skip to content

Development Installation

Logan Terry edited this page Mar 8, 2021 · 4 revisions

Set up the front-end for development

  • Install nodejs on your device
  • Install angular "npm install -g @angular/cli"
  • Clone the repository to your device and navigate your shell to SBOLCanvasFrontend/
  • Run "npm install"

Note: you may need to install an older version of nodejs. Currently nodejs 10 works. You will also likely need to run "npm install --save-dev --unsafe-perm node-sass".

Now you can run the front-end with "ng serve -o". If you make changes to a file and save them ng will automatically recompile and update your browser. If you don't want to, or are unable to run the back-end locally, you can change the backendURL in src/app/environments/environment.ts. If you do this please be sure to not commit the change to environment.ts.

Set up the backend for development

  • Make sure you have the Java 8 jdk found here
  • Install the EE edition of Eclipse found here
  • Install tomcat 9
    • Windows instructions here
    • Mac instructions here
    • Linux instructions here (Note: You don't need to set up the user, or the service)
  • In Eclipse open the existing SBOLCanvasFrontend project
  • In Eclipse set up a tomcat 9 server following these instructions
  • In Eclipse right click the server under the servers tab "Add and remove"
  • Add SBOLCanvasBackend to the server

You should now be able to run the back-end by right clicking the server under the servers tab and running it.