Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to set the Back-end on my laptop #84

Open
ShivangPandey2909 opened this issue Jan 5, 2024 · 16 comments
Open

Unable to set the Back-end on my laptop #84

ShivangPandey2909 opened this issue Jan 5, 2024 · 16 comments

Comments

@ShivangPandey2909
Copy link

Hi,
I have downloaded the repo but facing problem while setting up the back-end as per the instructions provided in the readme or the YouTube tutorial. Please help me for the same.

Thanks

@siddarthreddygsr
Copy link
Contributor

Could you be more descriptive about what exactly didn't work?

@ShivangPandey2909
Copy link
Author

Hi Siddarth I am unable to set-up the backend on my system is it possible if we could connect so that you can help me for the same

@siddarthreddygsr
Copy link
Contributor

siddarthreddygsr commented Jan 9, 2024

I am not the original Author of the codebase. If you can describe what is the error you are running into then I can try to look into it and help you, if not me someone else would. People prefer well descriptive descriptions including

  1. What were the issues you ran into
  2. What exactly did you do
  3. how can we reproduce the error
    would help.

@ShivangPandey2909
Copy link
Author

Hi Siddarth,

What were the issues you ran into:
While running make command in the backend, it showed an error that the command doesn't exist. We downloaded the equivalent version for make command in windows and try but it is giving a different error. Attaching the screenshot of the same.
What exactly did you do:
We downloaded the code from github into our local windows machine. We've extracted the folder and tried running the commands in readme file in backend and frontend folders.
We haven't made use of Docker containers. We simply ran it on our local windows machine. What are the steps to follow in this way?
how can we reproduce the error:
By running the make run command.

We would like to run this setup in a local "Windows" machine. Is it possible to run it without Docker? If with Docker, could you help us with the basic steps so that we can proceed. We're new to this.

@siddarthreddygsr
Copy link
Contributor

  1. Download docker on your machine and set it up properly by following this 👇
    https://docs.docker.com/desktop/install/windows-install/#install-docker-desktop-on-windows
  2. navigate to the location where you downloaded sec-insights
  3. open terminal in that location
  4. navigate to the backend folder
  5. use the command docker-compose up

PS 1: Using docker should take care of the environment.
PS 2: You forgot to attach the image.

@ShivangPandey2909
Copy link
Author

Hi Siddarth,
As per the above mentioned steps shared by you, I tried running docker-compose up command, at the end I got an exception saying Database is not up to date and asked to run this command "poetry run alembic upgrade head", but when I tried running this, I got an error saying poetry is not recognized as a command though I installed poetry several times.

@siddarthreddygsr
Copy link
Contributor

Follow this thread. Read through it thoroughly and don't blindly copy paste the commands. https://stackoverflow.com/questions/70003829/poetry-installed-but-poetry-command-not-found

Google well before asking for help.

@ShivangPandey2909
Copy link
Author

Hi Siddarth,
Even after giving all the key values in .env file we are getting the error that the values are missing. Please refer the image for reference.
Code error

@siddarthreddygsr
Copy link
Contributor

.env file

Can you check if you set the values in .env.development or .env

@ShivangPandey2909
Copy link
Author

Hi Siddarth,
It is .env

@siddarthreddygsr
Copy link
Contributor

siddarthreddygsr commented Jan 19, 2024

Did u also run

set -a
source .env

?

Try running echo $S3_BUCKET_NAME to check if the values are set in the environment it shouldn't return a blank value but the value you set in your .env file.

@siddarthreddygsr
Copy link
Contributor

Did it work ?

@ShivangPandey2909
Copy link
Author

Hi Siddarth,
Even after running the set and source command we are getting the same error of value missing.

@ShivangPandey2909
Copy link
Author

Hi Siddarth,
While running make run command we are getting the following errors. Could you please look into it and help me out.

Thanks
image (1)
image

@ShivangPandey2909
Copy link
Author

Hi Siddarth,
While running make seed_local_db command we are getting the following errors. Could you please look into it and help me out.

Thanks

image (2)

@kjRudani
Copy link

Hello Shivang, I'm encountering the same error, did you found any workaround to solve this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants