Backend project with MVC architecture
-
Clone the repository using
git clone
followed by the SSH key andcd
into it. -
Install composer using:
> curl -s https://getcomposer.org/installer | php > sudo mv composer.phar /usr/local/bin/composer
-
Install dependencies and dump-autoload:
> composer install > composer dump-autoload
-
Copy
config/sample.config.php
asconfig/config.php
and edit it accordingly:> cp config/sample.config.php config/config.php # Edit the file using your mysql database credentials
-
Import schema present in
schema/schema.sql
in your database. -
Serve the public folder at any port (say 8080):
> cd public > php -S localhost:8080