surveyjs / survey-creator

Scalable open-source survey software to generate dynamic JSON-driven forms within your JavaScript application. The form builder features a drag-and-drop UI, CSS Theme Editor, and GUI for conditional logic and form branching.
https://surveyjs.io/open-source
Other
910 stars 372 forks source link

Need guidance to clone the repo, as being facing the issues #3216

Closed babaralishah closed 3 months ago

babaralishah commented 2 years ago

I would not call it a bug but need a little guidance...

I just want to run this repo for understanding its workflow, so the framework would doesn't matter to me. Any of these below frameworks would be accepted:

Currently when I am running it in the angular environment, on running the 'ng serve' command after the 'npm i' command I get this below error: This repo is not of angular, command should run in angular directory image image

On running in React Environment: After Npm i and npm start: I get the error: all the errors are related to the webpack versioning issues

image image image

andrewtelnov commented 2 years ago

@babaralishah Our repo do not have angular code right now. You will need to compile survey-creator-core and then survey-creatir-knokout packages and use them in your angular application. We are working on Angular version, but it will take a time.

Thank you, Andrew

babaralishah commented 2 years ago

@babaralishah Our repo does not have angular code right now. You will need to compile survey-creator-core and then survey-creator-knockout packages and use them in your angular application. We are working on the Angular version, but it will take time.

Thank you, Andrew

@andrewtelnov Thank you so much for your response, can you please tell me what steps should i follow to run this as a react project?

andrewtelnov commented 2 years ago

For react project you can use packages: survey-creator-core and survey-creator-react.

Thank you, Andrew

babaralishah commented 2 years ago

@andrewtelnov Okay! And am I supposed to use this same repo for react by adding the above-mentioned packages?

andrewtelnov commented 2 years ago

All packages are located here

Thank you, Andrew

tsv2013 commented 2 years ago

You need to clone the https://github.com/surveyjs/survey-library and the https://github.com/surveyjs/survey-creator repositories side by side and then run the https://github.com/surveyjs/survey-creator/blob/master/run-dev-server-react.bat batch file

babaralishah commented 2 years ago

You need to clone the https://github.com/surveyjs/survey-library and the https://github.com/surveyjs/survey-creator repositories side by side and then run the https://github.com/surveyjs/survey-creator/blob/master/run-dev-server-react.bat batch file

@tsv2013 Is there some easy scenario for this? without running the two repos.

babaralishah commented 2 years ago

You need to clone the https://github.com/surveyjs/survey-library and the https://github.com/surveyjs/survey-creator repositories side by side and then run the https://github.com/surveyjs/survey-creator/blob/master/run-dev-server-react.bat batch file

I have cloned the two Repos but unable to run them, getting error when running this command npm start image

babaralishah commented 2 years ago

@andrewtelnov The survey-library is running fine with the react environment, but survey creator is not running in the react. i am getting the following error, can u please guide...

image

tsv2013 commented 2 years ago

@babaralishah survey-creator repo requires survey-library repo to be cloned aside. Also before the "npm start" command you almost always need to run "npm i" command. All these commands are listed in the https://github.com/surveyjs/survey-creator/blob/master/run-dev-server-react.bat file