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

How to make it work? #1

Closed
chrisvte opened this issue Aug 8, 2020 · 5 comments
Closed

How to make it work? #1

chrisvte opened this issue Aug 8, 2020 · 5 comments

Comments

@chrisvte
Copy link

chrisvte commented Aug 8, 2020

I have airsonic running in Ubuntu 18.04 and I want to use this frontend but I don't know how to do it.

I downloaded the code from git and tried the command "yarn install" but the only I got was:

"00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'install'"

First time using yarn, so I am kind of lost.

@SteveDinn
Copy link

When it was posted about on Reddit, I commented with a simple DockerFile. You could run it in a container if you wanted.
https://www.reddit.com/r/airsonic/comments/i4o8g9/modern_responsive_frontend_beta/g0kxx7a/

@SteveDinn
Copy link

FROM node:14.7.0-alpine3.12

WORKDIR /usr/src/app

COPY ./package.json .
RUN yarn install

ADD . /usr/src/app

RUN yarn build

# Start
CMD [ "yarn", "serve" ]
EXPOSE 8080

@SteveDinn
Copy link

Just noticed that @tamland posted an official docker image. Scratch my comment, and use that.

@chrisvte
Copy link
Author

chrisvte commented Aug 8, 2020

I didn't want to use docker but I really appreciate your help.
At the end it was something related with my yarn version outdated. So, here is the steps I took to solve it:

$ apt remove cmdtest yarn
$ npm install -g yarn
$ npm cache clean -f
$ npm install -g n
$ n stable

Relogin.

$ cd /opt/
$ wget https://github.com/tamland/airsonic-frontend/archive/master
$ unzip master.zip
$ cd airsonic-frontend-master/
$ yarn install
$ yarn serve

Open http://server-ip:8081

Now that it is working I having issues knowing what to put under "Server" field to login. I think is some kind of URL with the "/api" at the end, but I don't know.

@chrisvte
Copy link
Author

chrisvte commented Aug 8, 2020

u_u
It was really easy the last problem, it was just my server URL like http://server-ip:8080/airsonic, nothing to do with "/api", "/rest"...
So, time to try this front end.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants