graphiql-app icon indicating copy to clipboard operation
graphiql-app copied to clipboard

Ubuntu install instructions

Open HughP opened this issue 7 years ago • 5 comments

Are there some ubuntu install instructions somewhere? am I missing them? the brew method only works on MacOS, not on ubuntu with linuxbrew.

HughP avatar Oct 23 '17 07:10 HughP

I'm here also looking for Ubuntu instruction to install.

rohmanhm avatar Feb 02 '18 08:02 rohmanhm

I found this graphiql-app.AppImage file on the release page.

Download and install to your Ubuntu, I think it should work fine.

rohmanhm avatar Feb 02 '18 08:02 rohmanhm

Here's my solution. Probably not the most elegant one, but it works. Also, it works for Linux Distros in general, I'm using Arch.

First, create a shell script -- in my case graphiql-app.sh -- with the following contents:

#!/usr/bin/env bash

NPM_START="/your/path/to/npm start"
GRAPHIQL_PATH=/path/to/graphiql-app/folder

cd $GRAPHIQL_PATH && $NPM_START

Notice that you'll need to change the paths according to your system. To find out your npm path, you can type which npm

Then you create a .desktop file inside ~/.local/share/applications/:

[Desktop Entry]
Comment=
Terminal=false
Name=GraphiQL
Exec=/path/to/your/script/created/above/graphiql-app.sh
Type=Application
Icon=/graphiql-app path/build/icon.ico
StartupWMClass=graphiql

This way you'll have both CLI shortcuts (assuming your graphiql-app.sh is somewhere inside your $PATH and a GUI shortcut.

GNOME3 Example: GraphiQL Shortcut

trinaldi avatar Feb 10 '18 15:02 trinaldi

Before the guide from @trinaldi will work (see above), remember to run npm install and npm run build - otherwise you will get errors :+1:

achton avatar Apr 09 '18 17:04 achton

Anyone mind turning this into a section in the README please? Thank you.

gjtorikian avatar Apr 09 '18 17:04 gjtorikian