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

Initial Setup #1014

Closed
ntran18 opened this issue Jan 18, 2023 · 13 comments
Closed

Initial Setup #1014

ntran18 opened this issue Jan 18, 2023 · 13 comments
Assignees

Comments

@ntran18
Copy link
Collaborator

ntran18 commented Jan 18, 2023

  • Missing command line for running GRNsight in Development Mode:
    • Get parallelshell --wait "nodemon web-client/app.js" "nodemon server/app.js" "webpack --watch --mode=development" after running npm run start-dev
    • Solution: Type sudo npm i -g parallelshell to install parallelshell, sudo is for administration
    • We can link the trouble shooting page to the Initial Setup page
  • Can't run Development Mode but already installed database
  • Doesn't have node_modules folder even run npm install

Screenshot 2023-01-17 at 9 39 31 PM

@ntran18 ntran18 changed the title Initial Setup Docs Initial Setup Jan 18, 2023
@kdahlquist
Copy link
Collaborator

Is this connected to the node version issue? #1013

"-g" is not recommended because that stands for global, so whole computer has parallelshell. Need to install locally. It should come down with npm install. Also don't install with "sudo".

Once correct version for node is figured out, then @ntran18 can restart and see if solves problem.

@kdahlquist
Copy link
Collaborator

@ntran18 is still stuck on this. Need to change node version; changing path variable when multiple instances of node are installed suffices. She needs to install node 14 and be able to switch between them.

@kdahlquist
Copy link
Collaborator

check current version of node first (which is 18)

brew install node@14

when installation ends, there will be instructions at the bottom on how to change versions

@ntran18
Copy link
Collaborator Author

ntran18 commented Jan 31, 2023

I installed node@14 and run the command export PATH="/opt/homebrew/opt/node@14/bin:$PATH" to run temporary node version 14 and install npm. However, I still can't run npm run start-dev. The same problem occurs

@dondi
Copy link
Owner

dondi commented Feb 1, 2023

Interesting—I was about to report that using node@14 on a clean clone, with PATH set accordingly, worked completely as expected for me. npm install succeeded and npm run start-dev ran without an issue

@ntran18 I’m beginning to suspect that the prior -g installs might be in the way for you. Let’s look into clearing that out

@ntran18
Copy link
Collaborator Author

ntran18 commented Feb 2, 2023

The error I got was Error: listen EADDRINUSE: address already in use :::5000; however, @dondi helped me to fix that by turning off Airplay receiver in the settings.

@kdahlquist
Copy link
Collaborator

The airplay issue has come up before for Mac users. Is this documented in the setup wiki?

@dondi
Copy link
Owner

dondi commented Feb 8, 2023

Yes, it’s at the bottom of Initial Setup. We can consider another option for this—if this port usage is here to stay, we can look into changing our own port to something else

@ntran18
Copy link
Collaborator Author

ntran18 commented Feb 14, 2023

For the documentation, I think we can update it a little bit for instructions:

  • Dependency Installation
    • Tell the version of the npm
    • Instruction on how to install the other version of npm and how to change the version
    • If the instruction is to change the path temporarily by using this command, export PATH="/opt/homebrew/opt/node@14/bin:$PATH", then we have to change the npm version every time we run the project in a new window.
  • Database Setup
    • In the GRNsight Database README.md, there is a link to a presentation. We should organize again what is needed to be on the presentation. (like slides 7 and 8, we don't need to have)
    • Another question is, do we need the presentation? Because all the steps already listed in README.md

@dondi
Copy link
Owner

dondi commented Feb 15, 2023

@ntran18’s setup is nearly complete except that the Network Source dropdown is showing undefined for the source name rather than YeastMine. When @dondi inspected the database, the schemas looked like they were there and the tables looked like they had the expected information

@ntran18 will consult with @Onariaginosa and @ahmad00m on this—@ahmad00m said this looks familiar

Once the issue is isolated, this may result in either a code change or a documentation revision, or both

@dondi
Copy link
Owner

dondi commented Feb 15, 2023

After review of the suggested documentation changes (one suggestion: change the sample path to something more generic rather than Homebrew), @ntran18 can implement the revisions directly

@ntran18
Copy link
Collaborator Author

ntran18 commented Feb 22, 2023

I updated on Initial Setup page for the installing older version of node on macOS

@kdahlquist
Copy link
Collaborator

kdahlquist commented Feb 22, 2023

@ntran18 is still working on documentation on how to load the database. She's going to edit the PDF from the databases class and select only the items necessary for GRNsight and add it to the wiki. This task is documented in issue #1011, so closing this one.

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

No branches or pull requests

3 participants