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

local jqueryui server build #384

Open
superyyao opened this issue Oct 15, 2019 · 12 comments
Open

local jqueryui server build #384

superyyao opened this issue Oct 15, 2019 · 12 comments

Comments

@superyyao
Copy link

@superyyao superyyao commented Oct 15, 2019

You must use linux OS to build the service。
jQuery UI DownloadBuilder & ThemeRoller backend and frontend application.

http://www.xmlsoft.org/downloads.html
Requirements
node >= 0.12.x and npm
ImageMagick 6.6.x. (see below for instructions to compile it from source)
grunt-cli: npm install -g grunt-cli
api.jqueryui.com requirements.

ImageMagick installation to see the official documentation Appendix

  • install git https://git-scm.com/download/linux

  • apt-get install git

  • sudo ln -s /home/ubuntu/node-v10.15.3-linux-x64(you node directory)/bin/grunt /usr/local/bin/

  • npm install -g bower

  • sudo ln -s /home/ubuntu/node-v10.15.3-linux-x64(you node directory)/bin/bower /usr/local/bin/

download.jqueryui.com-master https://github.com/jquery/download.jqueryui.com
npm install
grunt prepare
(if "grunt prepare" so slow,cd /home/ubuntu/download.jqueryui.com-master/tmp
git clone https://github.com/jquery/api.jquery.com.git
git clone https://github.com/jquery/jquery-ui.git
modify Gruntfile.js

function( callback ) {
			//grunt.util.spawn({
					//cmd: "git",
					//args: [ "fetch" ],
					//opts: {
						//cwd: "tmp/jquery-ui"
					//}
					//}, callback );
                          callback ();
			},
function( callback ) {
		//grunt.util.spawn({
		//cmd: "git",
	       //args: [ "fetch", "-t" ],
	      //opts: {
	//cwd: "tmp/jquery-ui"
	//}
	//}, callback );
          callback ();
	}
	grunt.util.spawn({
		cmd: "bower",
		args: [ "install", "--allow-root" ]
	}, done );

)

  1. node server.js --console
    if use virtual machine
    modify Gruntfile.js
server.listen( httpPort, function() {
	console.log()
	console.log( "HTTP Server running at http://%s:%d", httpHost, httpPort );
});
	}, done );

good luck!

@minj
Copy link

@minj minj commented Dec 18, 2019

instructions unclear lol

e.g. formatting is messed up

if use virtual machine
modify Gruntfile.js

server.listen( httpPort, function() {
	console.log()
	console.log( "HTTP Server running at http://%s:%d", httpHost, httpPort );
});
	}, done );

which, where, what?

@superyyao why not make a PR with a proper diff?

@superyyao
Copy link
Author

@superyyao superyyao commented Dec 20, 2019

Sorry , modify server.js not Gruntfile.js
if use virtual machine
modify server.js

server.listen( httpPort, function() {
console.log()
console.log( "HTTP Server running at http://%s:%d", httpHost, httpPort );
});
}, done );`
Thanks, @minj

@minj
Copy link

@minj minj commented Dec 20, 2019

yeah, my problem is I can't get an older build than 1.12.1 to work. It just times out.

I'll try the VM, thanks.

@fnagel
Copy link
Member

@fnagel fnagel commented Feb 18, 2020

Related to #359

@astehlik
Copy link

@astehlik astehlik commented Apr 21, 2020

Hi there,

I created a docker image that allows you to run the jQuery UI theme roller and download builder locally:

https://hub.docker.com/r/intera/jquery-ui

I hope it helps to run the Theme Roller locally.

It should be as simple as running

docker run --rm -p 8088:8088 intera/jquery-ui:latest

and the opening this URL in your browser:

http://localhost:8088/

Edit: Fixed the link to docker hub.

@japicoder
Copy link

@japicoder japicoder commented Apr 21, 2020

@astehlik your solution worked pretty well for me, no overhead and easy to get it running. Thank you!

@ddison
Copy link

@ddison ddison commented Apr 22, 2020

@astehlik Your solution did work great but I am only able to download 1.12 themes it appears and I need 1.9.x themes for the app I have. Any ideas for a workaround?

@astehlik
Copy link

@astehlik astehlik commented Apr 22, 2020

@ddison Thanks for your feedback.

I tried to download the 1.9.2 version and also got an error. After some digging I was able to solve the problem with a patch. Please pull the newest Docker image and try again.

If you are interested: the patch applied can be found here:
https://github.com/Intera/docker-jquery-ui/blob/master/patches/fix-basename-calls.diff

I hope it works with the new image.

@rubo77
Copy link

@rubo77 rubo77 commented Apr 26, 2020

Great! Maybe someone likes to run the docker image on their server so everybody can access it to download the latest builds

@gbjbaanb
Copy link

@gbjbaanb gbjbaanb commented Apr 26, 2020

Great! Maybe someone likes to run the docker image on their server so everybody can access it to download the latest builds

maybe, even, I don't know, possibly someone like, perhaps, the OpenJS team who broke the download in the first place :)

Hi there,

I created a docker image that allows you to run the jQuery UI theme roller and download builder locally:

https://hub.docker.com/repository/docker/intera/jquery-ui

I hope it helps to run the Theme Roller locally.

It should be as simple as running

docker run --rm -p 8088:8088 intera/jquery-ui:latest

and the opening this URL in your browser:

http://localhost:8088/

@jorydotcom would it not be possible to run this dockerimage on your infrastructure, maybe with a link from the old download page, so that the builder would be available to everyone unable (or unwilling) to run docker images.

@astehlik
Copy link

@astehlik astehlik commented Apr 27, 2020

@gbjbaanb I like the idea and I'll see if I can setup a public server.

Unfortunately there is an issue when loading an existing theme that needs to be sorted out first:

Intera/docker-jquery-ui#1

Without fixing that running a public server would not make much sense ;) Any help on this is highly appreciated.

@astehlik
Copy link

@astehlik astehlik commented Apr 30, 2020

A public demo of the Docker image is now running here:

Theme Roller

https://jquery-ui.intera.ws/themeroller/

Download Builder

https://jquery-ui.intera.ws/download/

@fnagel fnagel pinned this issue May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
8 participants
You can’t perform that action at this time.