API for Bookmarks-Frontend.
docker-compose build
- Build Dockerdocker-compose up -d
- Start Dockerdocker-compose exec php /bin/bash
- SSH Login to Dockerdocker-compose down
- Stop Docker
127.0.0.1 api.bookmarks.local
API enpoint: http://api.bookmarks.local:8025
API docs: http://api.bookmarks.local:8025/v1/docs
composer install
php init --env=Development
Setup Database with Host: localhost, Post: 3386, Username: user and Password: pass
php yii migrate
Mark the file "/vendor/yiisoft/yii2/Yii.php"
as plain text (right-click "Mark as Plain Text").
php yii user/create
- register new User
# Once run 'build'
vendor/bin/codecept build
# Apply migrations for _test db
php yii_test migrate
# Run all tests
vendor/bin/codecept run
vendor/bin/codecept run -- -c <app_name:api> <type:api|unit|acceptance|functional> <className>::<methodName>
# Run specific environment tests
vendor/bin/codecept run -- -c api
# Run all tests within one test class
vendor/bin/codecept run -- -c api api UserCest
# Run one specified test (useful when writing new test)
vendor/bin/codecept run -- -c api api UserCest::checkRegister
You can import the Postman collection for the bookmarks.postman_collection.json
file.
This project is licensed under the AGPL-3.0 License. See the LICENSE file for details.
- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Make your changes
- Commit your changes (git commit -am 'Added some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request