Client & Server directory with GitHub

Answered

Hi there,

I am currently developing my first web app with Webstorm (MEVN-Stack). For the frontend I am using Vue.js and for backend Express.js.

There are two subdirectories - client (frontend) and server (backend):

ProjectName:
client:
public
src
server:
models
src

Currently "client" and "server" are two different Webstorm Projects, since one is Vue.js and the other is Node.js.
I would like to use the VCS-Gui from Webstorm to manage my Code. Both "client" and "server" should be in the same GitHub Repository.

Could anyone please help me to archive that?

Thank you in advance!
Regards,
Max

3 comments
Comment actions Permalink

To achieve this, initialize git repository in the ProjectName folder.

Using WebStorm GUI you can call VCS - Import into VCS - Create Git Repository...

0
Comment actions Permalink

Hi, thank you for your response.
Perhaps I described my issue wrong:

  1. I have my master directory called "master-dir".
  2. The master-dir contains two individual Webstorm projects:
    "Webstorm-project-1-dir" and "Webstorm-project-2-dir"
  3. Both (project-1 and project-2) should be in the same GitHub repository
└───master-dir
├───Webstorm-project-1-dir
└───Webstorm-project-2-dir

Is this somehow possible with Webstorm-VCS?

Regards,
Max

0
Comment actions Permalink

Yes, it is possible. You need to initialize git repository in the master-dir. This way everything that is inside the master dir will be subject to the repository in the master -dir. Then push it to GitHub.

Using the UI, you can initialize git repository in the master-dir using the VCS - Import into VCS - Create Git Repository... action, and choosing the master-dir in the dialog.

Are there any issues with this approach?

0

Please sign in to leave a comment.