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
Please sign in to leave a comment.
To achieve this, initialize git repository in the ProjectName folder.
Using WebStorm GUI you can call VCS - Import into VCS - Create Git Repository...
Hi, thank you for your response.
Perhaps I described my issue wrong:
"Webstorm-project-1-dir" and "Webstorm-project-2-dir"
Is this somehow possible with Webstorm-VCS?
Regards,
Max
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?