root/branches/1.0/doc/README

Revision 33, 3.5 kB (checked in by nperriault, 9 months ago)

Moved LICENSE and README to doc/ directory

Line 
1 = Welcome to the Symfonians project =
2
3 '''Symfonians''' is an open source ([http://creativecommons.org/licenses/by-sa/3.0/ CC-BY-SA 3.0 licensed]) project-centric social networking web application written in [http://php.net/ PHP5] and based on the [http://symfony-framework.org/ Symfony framework] (1.0 stable version is used). The code has been extracted from the [http://symfonians.net/ Symfonians.net] application.
4
5 [[Image(WikiStart:Screenshot.png, align=right)]]
6
7 It currently offers several features such as:
8  * Applications directory
9  * People profiles directory
10  * Companies directory
11  * Job offers catalog
12  * People recommendations
13  * Items connections
14  * Weblog management
15  * Maps and geolocalization
16  * Lucene searchable index
17  * Microformats
18  * and some other features...
19
20 As you may have guessed, the main aim of this open source code is not to be set up ''as is'' for running your own website, but to give some ideas for your projects using Symfony.
21
22 == Prerequisites ==
23 PHP5.1+ compiled with `xslt` and `gd2` modules is required (`ImageMagick` would be better, but is not required). All DBMS supported by [http://creole.phpdb.org/trac/ Creole] and [http://propel.phpdb.org/ Propel] are theorically supported (only mysql has been tested), but you'll need to install related php5 modules as needed.
24
25 == Installation ==
26 Checkout the project from the [http://subversion.tigris.org/ subversion] repository:
27 {{{
28 $ svn co http://symfonians.org/svn/trunk symfonians-trunk
29 $ cd symfonians-trunk
30 }}}
31
32 Undistribute all configuration files:
33 {{{
34 $ batch/undist.sh
35 }}}
36
37 Then, create a dedicated database (please use UTF-8), undistribute and edit the database configuration files:
38 {{{
39 $ vi config/databases.yml config/propel.ini
40 }}}
41 You'll find configuration instructions for these two files on the [http://www.symfony-project.org/book/1_0/08-Inside-the-Model-Layer#Database%20Connections dedicated section in the Symfony online documentation].
42
43 When you're done, prepare the environment, build the model and load default bundled fixtures:
44 {{{
45 $ php symfony fix-perms
46 $ php symfony propel-build-all
47 $ php symfony cc
48 $ php propel-load-data main
49 $ php batch/post_load.php
50 }}}
51
52 You can do all steps in just a call using:
53 {{{
54 $ batch/reinit.sh
55 }}}
56
57 Last, you can edit the `config/app.yml` file (which contains all the params you'd wish to edit to adapt the website to your needs):
58 {{{
59 $ vi config/app.yml
60 }}}
61
62 == Apache vhost ==
63 Make your webserver pointing at the `web` directory of the project, and you're done. Here's a minimal Apache2 vhost sample configuration file (`mod_rewrite` must be enabled):
64 {{{
65 NameVirtualHost *
66 <VirtualHost *>
67     ServerName local.symfonians
68     DocumentRoot "/path/to/symfonians-trunk/web"
69     <Directory "/path/to/symfonians-trunk/web">
70         AllowOverride All
71         Allow from All
72     </Directory>
73 </VirtualHost>
74 }}}
75
76 Add `local.symfonians` entry in your `/etc/hosts` file for your local IP address, reload your webserver and have some rest.
77
78 == Licensing information ==
79  * This source code is published under the terms of the [http://creativecommons.org/licenses/by-sa/3.0/ CC-BY-SA 3.0] license. It means that if you want to reuse this code source publicly, you must attribute the paternity and redistribute the result under the same terms.
80
81 {{{
82 #!html
83 <p style="text-align:center">
84   <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">
85     <img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/88x31.png" />
86   </a>
87 </p>
88 }}}
Note: See TracBrowser for help on using the browser.