Install Akelos on Windows with a example.
I'm assuming that there's an Apache 2 installed and a PHP 5 in the machine.
First download akelos framework
http://www.akelos.org/download
Then extract it, for example, to
c:\akelos_framework
then execute go to c:\akelos_framework and execute
php script/setup -d c:\httpdocs\booklink
(I'm assuming that c:\httpdocs is your Apache DocumentRoot)
Now create the database:
mysql -u root -p
Enter password: ******
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.0.41-community-nt MySQL Community Edition (GPL)
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> CREATE DATABASE booklink;
Query OK, 1 row affected (0.00 sec)
mysql> CREATE DATABASE booklink_dev;
Query OK, 1 row affected (0.02 sec)
mysql> CREATE DATABASE booklink_tests;
Query OK, 1 row affected (0.01 sec)
mysql> GRANT ALL ON booklink.* TO cassio@localhost IDENTIFIED BY "pass";
Query OK, 0 rows affected (0.09 sec)
mysql>
mysql> GRANT ALL ON booklink_dev.* TO cassio@localhost IDENTIFIED BY "pass";
Query OK, 0 rows affected (0.00 sec)
mysql>
mysql> GRANT ALL ON booklink_tests.* TO cassio@localhost IDENTIFIED BY "pass";
Query OK, 0 rows affected (0.00 sec)
mysql>
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)
mysql> exit;
Bye
Open in the browser:
http://127.0.0.1/booklink/public/
should display :
Welcome aboard
You’re using The Akelos Framework!
Getting started
1.
Configure your environment
Run a step by step wizard for creating a configuration file or read README.txt instead.
Start the configuration wizard
Configure your database according to the DB you've created previously.
Configure your language (in my case for example: pt,pt_PT)
Then go to command line, to the c:\httpdocs\booklink directory and run
php script/generate scaffold Book
which will tell you that some files where created.
Now... magic: just go to http://127.0.0.1/booklink/book and start playing with your application!!!
I will be posting the next round in a short time: how to create your own application
quinta-feira, 7 de agosto de 2008
Subscrever:
Enviar feedback (Atom)
Sem comentários:
Enviar um comentário