Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hiqdev/asset-packagist.dev
Root project for Asset Packagist
https://github.com/hiqdev/asset-packagist.dev
bower composer hacktoberfest npm packagist
Last synced: about 1 month ago
JSON representation
Root project for Asset Packagist
- Host: GitHub
- URL: https://github.com/hiqdev/asset-packagist.dev
- Owner: hiqdev
- License: bsd-3-clause
- Created: 2017-05-05T13:00:28.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-10-01T14:59:44.000Z (about 4 years ago)
- Last Synced: 2024-11-14T03:08:53.732Z (about 1 month ago)
- Topics: bower, composer, hacktoberfest, npm, packagist
- Language: PHP
- Homepage: https://asset-packagist.org/
- Size: 38.1 KB
- Stars: 18
- Watchers: 6
- Forks: 7
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# asset-packagist.dev
[![Latest Stable Version](https://poser.pugx.org/hiqdev/asset-packagist.dev/v/stable)](https://packagist.org/packages/hiqdev/asset-packagist.dev)
[![Total Downloads](https://poser.pugx.org/hiqdev/asset-packagist.dev/downloads)](https://packagist.org/packages/hiqdev/asset-packagist.dev)
[![Build Status](https://img.shields.io/travis/hiqdev/asset-packagist.dev.svg)](https://travis-ci.org/hiqdev/asset-packagist.dev)
[![Scrutinizer Code Coverage](https://img.shields.io/scrutinizer/coverage/g/hiqdev/asset-packagist.dev.svg)](https://scrutinizer-ci.com/g/hiqdev/asset-packagist.dev/)
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/hiqdev/asset-packagist.dev.svg)](https://scrutinizer-ci.com/g/hiqdev/asset-packagist.dev/)
[![Dependency Status](https://www.versioneye.com/php/hiqdev:asset-packagist.dev/dev-master/badge.svg)](https://www.versioneye.com/php/hiqdev:asset-packagist.dev/dev-master)## Installation
### Create the DB in MySQL:
```sql
CREATE DATABASE asset_packagist;
CREATE USER 'asset-packagist'@'localhost' IDENTIFIED BY 'GOOD_PASSWORD';
GRANT ALL PRIVILEGES ON asset_packagist.* TO 'asset-packagist'@'localhost';
FLUSH PRIVILEGES;
```### Create the project with composer:
```sh
composer create-project --stability=dev "hiqdev/asset-packagist.dev:*" dir
```### Make configuration tuning:
Copy `.env.example` to `.env` and adjust it:
```sh
cp .env.example .env
edit .env
```Be sure to set `COOKIEVALIDATIONKEY` and `DB_PASSWORD`:
```sh
COOKIEVALIDATIONKEY=GOOD_RANDOM_STRING_HERE
DB_PASSWORD=YOUR_DB__PASSWORD
```Put your SSH private key into `.docker/ssh/id_rsa`, make sure to set owner root and chmod 600.
```sh
mkdir .docker/ssh
cp ~/Desktop/id_rsa .docker/ssh/id_rsa
chown -R root:root .docker/ssh
chmod 600 .docker/ssh/id_rsa
```### Deploy the project
```
docker-compose up -d --scale queue=4
```Try to fetch your first package from web-interface or using the following command:
```sh
docker-compose run --rm cli ./vendor/bin/hidev asset-package/update bower jquery
```### Working with queues
Some operations such as package update will push tasks to queue.
Run queue to execute that tasks:```sh
./vendor/bin/hidev queue/run
```It is recommended to run all console commands from the same user you are running the web application
to prevent permissions problems in `web/p` directory.### Known bugs:
Just skip yellow warnings `Couldn't read ...` - they are unimportant.
## License
This project is released under the terms of the BSD-3-Clause [license](LICENSE).
Read more [here](http://choosealicense.com/licenses/bsd-3-clause).Copyright © 2016-2018, HiQDev (http://hiqdev.com/)