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

Idea: Launch script #58

Open
daniel-bogdoll opened this issue Apr 30, 2021 · 1 comment
Open

Idea: Launch script #58

daniel-bogdoll opened this issue Apr 30, 2021 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@daniel-bogdoll
Copy link

When following the instructions, under Ubuntu 20.04 the package (currently) gets downloaded to /home/USER/go/pkg/mod/github.com/bzz/[email protected]

To access it easier, I wrote a little script which can run from anywhere, starts the service and automatically opens the browser. No magic, but convenient:

export SAD_LABEL='XXX'
export SAD_GOOGLE_ID='YYY'
export SAD_GOOGLE_SECRET='ZZZ'

xdg-open http://localhost:8080
cd /home/USER/go/pkg/mod/github.com/bzz/[email protected]

go run ./cmd/server [-compact]

Not sure if this is the optimal solution, though. Maybe one could add this (or a better/different approach) to the Readme as a starting point for new users? Also, it could be stated that the credentials.json needs to be placed in the root directory, even though this was easy to figure out.

@bzz
Copy link
Owner

bzz commented May 7, 2021

Hi @daniel-bogdoll. I think the idea to include such script in the repo is a great one - from what I have seen, every user end up with some script like this of their own.

I believe one can even remove cd /home/USER/go/pkg/mod/ as the same should work with any working directory, if one clones the repo manually instead of using go get.

And polishing the READEM section a bit for the convenience of new users is something that needs to be done (e.g. see #56), so will be happy to accept PRs for both :)

@bzz bzz added enhancement New feature or request help wanted Extra attention is needed labels Apr 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants