Home - cshub-yorku/merchStore GitHub Wiki

How to run back-end

  • Install postgres, Intellij and pgAdmin

  • Open pgAdmin and run population script located in /frontend/db/testingData.sql

  • Open backend folder with Intellij. There next to run button open configuration window. Choose Driver.java as entry point and paste following environment variables in matching field. Put values from your db setup after = sign.

     datasource_password=1234;
     datasource_url=jdbc:postgresql://localhost:5432/postgres;
     datasource_username=postgres;
    

Screenshot from 2023-04-14 18-37-05

  • Make sure to run database and Java server using configuration.
  • Run react app. If anything comes up try changing url in StoreContext file in productUpdate method.