Browse Source

Update composer.json and README for be able to install and run project

Bastien Sevajol 5 years ago
parent
commit
bdfc471c3b
3 changed files with 82 additions and 15 deletions
  1. 71 2
      README.md
  2. 2 2
      app/config/parameters.yml.template
  3. 9 11
      composer.json

+ 71 - 2
README.md View File

1
 # Muzi.ch
1
 # Muzi.ch
2
-recently open sourced:
2
+
3
+Muzi.ch is a website who permit to:
4
+
5
+* Listen user shared music links
6
+* Create an account and share music links
7
+* Listen music links in automated player
8
+* Create playlists
9
+* Vote for shared links
10
+* Favorite shared links
11
+* Apply tag to owned shared music links
12
+* Propose tags on shared music links
13
+* Comment shared music links
14
+
15
+## Install
16
+
17
+Muzi.ch source code is old and corrently not maintened. The following howto
18
+have been tested on debian 9 in a docker container.
19
+
20
+```
21
+# OS dependencies
22
+apt-get install git curl gnupg apt-transport-https lsb-release ca-certificates zip unzip
23
+# wget
24
+
25
+# Need php5.x
26
+curl https://packages.sury.org/php/apt.gpg | apt-key add -
27
+echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list
28
+apt-get update
29
+apt-get install php5.6 php5.6-xml php5.6-gd libjpeg-dev php5.6-mongo php5.6-curl php5.6-mysql php5.6-mbstring
30
+
31
+# Install muzi.ch
32
+git clone https://gitea.bux.fr/bux/muzich.git
33
+cd muzich
34
+cp app/config/config.yml.template app/config/config.yml
35
+cp app/config/parameters.yml.template app/config/parameters.yml
36
+php composer.phar install
37
+
38
+# Database
39
+apt-get install mysql-server
40
+service mysql start
41
+mysql --execute "CREATE DATABASE muzich;"
42
+mysql --execute "CREATE USER 'muzich'@'localhost';"
43
+mysql --execute "GRANT ALL PRIVILEGES ON muzich.* To 'muzich'@'localhost' IDENTIFIED BY 'muzich';"
44
+
45
+# First time, create database
46
+php app/console doctrine:schema:create
47
+
48
+# Start dev server
49
+php app/console server:run
50
+```
51
+
52
+## Run tests
53
+
54
+First time, execute:
55
+
56
+```
57
+# Get php unit 4
58
+wget -O phpunit https://phar.phpunit.de/phpunit-4.phar
59
+chmod +x phpunit
60
+
61
+# Prepare database
62
+mysql --execute "CREATE DATABASE muzich_test;"
63
+mysql --execute "GRANT ALL PRIVILEGES ON muzich_test.* To 'muzich'@'localhost' IDENTIFIED BY 'muzich';"
64
+```
65
+
66
+```
67
+./phpunit -c app src
68
+```
69
+
70
+## TODO
3
 
71
 
4
 * Write a howto for installation
72
 * Write a howto for installation
5
 * Choose a licence
73
 * Choose a licence
6
-* list bugs and possible enhancements
74
+* Update dependencies
75
+* list bugs and possible enhancements

+ 2 - 2
app/config/parameters.yml.template View File

1
 parameters:
1
 parameters:
2
     database_driver:   pdo_mysql
2
     database_driver:   pdo_mysql
3
-    database_host:     10.6.0.5
3
+    database_host:     localhost
4
     database_port:     3306
4
     database_port:     3306
5
     database_name:     muzich
5
     database_name:     muzich
6
     database_user:     muzich
6
     database_user:     muzich
7
-    database_password: secret
7
+    database_password: muzi.ch
8
 
8
 
9
     mailer_transport:  smtp
9
     mailer_transport:  smtp
10
     mailer_host:       localhost
10
     mailer_host:       localhost

+ 9 - 11
composer.json View File

16
         "symfony/monolog-bundle": "v2.2.0",
16
         "symfony/monolog-bundle": "v2.2.0",
17
         "sensio/distribution-bundle": "v2.2.3",
17
         "sensio/distribution-bundle": "v2.2.3",
18
         "sensio/framework-extra-bundle": "v2.2.3",
18
         "sensio/framework-extra-bundle": "v2.2.3",
19
-        "sensio/generator-bundle": "v2.2.3",
19
+        "sensio/generator-bundle": "v2.3.3",
20
         "jms/security-extra-bundle": "1.5.1",
20
         "jms/security-extra-bundle": "1.5.1",
21
         "jms/di-extra-bundle": "1.4.0",
21
         "jms/di-extra-bundle": "1.4.0",
22
         "kriswallsmith/assetic": "v1.1.1",
22
         "kriswallsmith/assetic": "v1.1.1",
23
         
23
         
24
         "friendsofsymfony/user-bundle": "v1.3.1",
24
         "friendsofsymfony/user-bundle": "v1.3.1",
25
-        "doctrine/data-fixtures" : "dev-master", 
26
-        "doctrine/doctrine-fixtures-bundle": "dev-master",
27
-        "stof/doctrine-extensions-bundle": "dev-master",  
28
-        "gregwar/image-bundle": "dev-master",
29
-        "cedriclombardot/admingenerator-generator-bundle": "2.1.*@dev",
30
-        "cedriclombardot/twig-generator": "dev-master",
31
-        "white-october/pagerfanta-bundle": "2.1.*@dev",
32
-        "pagerfanta/pagerfanta": "1.0.*@dev",
33
-        "shtumi/useful-bundle": "dev-master",
25
+        "doctrine/data-fixtures" : "v1.0.0-ALPHA4",
26
+        "doctrine/doctrine-fixtures-bundle": "2.2.1",
27
+        "stof/doctrine-extensions-bundle": "v1.2.0",
28
+        "gregwar/image-bundle": "v2.0.19",
29
+        "cedriclombardot/admingenerator-generator-bundle": "v1.0.0",
30
+        "cedriclombardot/twig-generator": "v1.0.0",
31
+        "shtumi/useful-bundle": "dev-master#c48ef1a",
34
         "sonata-project/doctrine-orm-admin-bundle": "2.2.1",
32
         "sonata-project/doctrine-orm-admin-bundle": "2.2.1",
35
         "sonata-project/admin-bundle": "2.2.2",
33
         "sonata-project/admin-bundle": "2.2.2",
36
         "sonata-project/jquery-bundle": "1.8.*@dev",
34
         "sonata-project/jquery-bundle": "1.8.*@dev",
37
         "sonata-project/block-bundle": "2.2.3",
35
         "sonata-project/block-bundle": "2.2.3",
38
-        "friendsofsymfony/facebook-bundle": "dev-master",
36
+        "friendsofsymfony/facebook-bundle": "1.2.1",
39
         
37
         
40
         "doctrine/mongodb-odm-bundle": "v3.0.0-BETA4",
38
         "doctrine/mongodb-odm-bundle": "v3.0.0-BETA4",
41
         "doctrine/mongodb-odm": "1.0.0-BETA9",
39
         "doctrine/mongodb-odm": "1.0.0-BETA9",