This software is distributed under the Creative Commons Attribution - Non Commercial - No Derivatives 4.0 International license
- Do not push on
master
- "main" branch is
dev
- Create a new
feature
branch for each new feature development - Do not merge
feature
branches withdev
, create a pull request fromfeature
branch todev
git clone [email protected]:smartfollow/api.git
cd api
composer install
cp .env.example .env
php artisan key:generate
nano .env
Update the database informations and other relevant credentials.
php artisan migrate
php artisan db:seed
php artisan passport:install
The documentation for the routes is available at http://path.to.smartfollow.api/docs
To generate it you have to install apiDoc and run the following command:
apidoc -i app/ -o public/docs/
In order to make sure that the installation is up to date after the pull, it is required to execute the following commands:
composer dumpauto
php artisan config:cache
php artisan migrate
php artisan db:seed --class=UpdateAccessRulesSeeder
php artisan db:seed --class=UpdateAccessRuleGroupSeeder