FOSSologyUI icon indicating copy to clipboard operation
FOSSologyUI copied to clipboard

Add a step-by-step guide on how to connect to the backend

Open akib22 opened this issue 3 years ago • 7 comments

Description

I'm attempting to run the project with yarn in development mode. However, I am unable to connect to the backend. I followed the instructions from readme.md.

node -> v16.14.0 yarn -> v1.22.17

Screenshots

error screenshot

How localhost/repo/api/v2 will work? Can anyone please explain to me?.

akib22 avatar Mar 14 '22 17:03 akib22

Hi @akib22, do you have FOSSology Installed on your system?

sjha2048 avatar Mar 18 '22 09:03 sjha2048

No.

akib22 avatar Mar 18 '22 14:03 akib22

@akib22 You have to first install FOSSology and then refer to this wiki

RakeshPotnuru avatar Mar 21 '22 08:03 RakeshPotnuru

@akib22 One more thing that I would like to add is, once the FOSSology is up and running at the URL http://localhost:8081/repo. Then, you need to follow these two steps:

  1. Setup CORS as instructed here

  2. In the .env file of the FOSSologyUI project, assign the value of REACT_APP_SERVER_URL as:

REACT_APP_SERVER_URL=localhost:8081/repo/api/v1

PS: I used docker for installing FOSSology

Raunakk02 avatar Mar 22 '22 10:03 Raunakk02

Does it make sense to convert this issue to a GitHub discussion similar to https://github.com/fossology/fossology/discussions/1942 ?

GMishx avatar Mar 28 '22 10:03 GMishx

@GMishx Yes, I think so, I tried everything but it didn't work for me. Maybe someone else can say what is the problem.

d-e-v-esh avatar Mar 28 '22 11:03 d-e-v-esh

There is a fix proposed at https://github.com/fossology/fossology/pull/2195 for CORS.

GMishx avatar Mar 30 '22 05:03 GMishx