This is a web application to browse and install applications present in Flatpak repositories. It began as a personal proof of concept but its used in https://flathub.org since April 2018.
The web app obtains data calling a remote REST API implemented in linux-store-backend
Install Node.js LTS (14.X.X 'fermium' at this time)
nvm install --lts=fermium
# In Fedora Silverblue I found this error and had to run the suggested commands:
# nvm is not compatible with the npm config "prefix" option: currently set to "/var/home/jorge/.nvm/versions/node/v14.15.3"
# Run `nvm use --delete-prefix v14.15.2` to unset it.
nvm use --delete-prefix v14.15.2
npm config delete prefix
npm config set prefix $NVM_DIR/versions/node/v14.15.2
# Set default version
nvm use lts/fermium
nvm alias default lts/fermium
# Check installation
nvm ls
-> v14.15.3
default -> lts/fermium (-> v14.15.3)
node -> stable (-> v14.15.3) (default)
stable -> 14.15 (-> v14.15.3) (default)
iojs -> N/A (default)
unstable -> N/A (default)
lts/* -> lts/fermium (-> v14.15.3)
lts/argon -> v4.9.1 (-> N/A)
lts/boron -> v6.17.1 (-> N/A)
lts/carbon -> v8.17.0 (-> N/A)
lts/dubnium -> v10.23.0 (-> N/A)
lts/erbium -> v12.20.0 (-> N/A)
lts/fermium -> v14.15.3
Go to the root of this project and install the javascript dependencies:
npm install
Start the webapp running the command npm start. This will compile the code and start a local dev server. Navigate to http://localhost:4200/ to see the webapp running!
The app will automatically reload if you change any of the source files.
If the app doesn't update automatically on every change in the code it might be because of this issue related to the inotify limits. I've done this to fix it in Fedora Silverblue:
sudo vi /etc/sysctl.d/99-sysctl.conf
# Increase the inotify watches limit to fix change detection
# problems with Angular
fs.inotify.max_user_watches=65536
sudo sysctl -p --system
cat /proc/sys/fs/inotify/max_user_watches
65536
Angular Flex Layout: HTML UI layout for Angular applications; using Flexbox and a Responsive API
I've been trying to make this app themable (still a work in progress) using the facilities provided by Angular Material. Read next links for more info:
请发表评论