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
featurebranch for each new feature development - Do not merge
featurebranches withdev, create a pull request fromfeaturebranch todev
git clone [email protected]:smartfollow/api.git
cd apicomposer install
cp .env.example .env
php artisan key:generate
nano .envUpdate the database informations and other relevant credentials.
php artisan migrate
php artisan db:seed
php artisan passport:installThe 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