fossology / FOSSologyUI

Repository to hold the new UI framework for FOSSology built with React
https://fossology.github.io/FOSSologyUI/
GNU General Public License v2.0
49 stars 87 forks source link

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

Open akib22 opened 2 years ago

akib22 commented 2 years ago

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?.

sjha2048 commented 2 years ago

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

akib22 commented 2 years ago

No.

RakeshPotnuru commented 2 years ago

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

Raunakk02 commented 2 years ago

@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

GMishx commented 2 years ago

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

d-e-v-esh commented 2 years ago

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

GMishx commented 2 years ago

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