SIWECOS Core Api
100K+
For usage with a mac, we recommend the usage of Valet, a leightweight Vagrant wrapper for Laravel Laravel Valet
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"`
$ bre update
$ brew install homebrew/php/php71
$ brew install mysql
$ composer global require laravel/valet
$ valet start
$ git checkout https://github.com/SIWECOS/siwecos-core-api.git
$ cd siwecos-core-api/CoreApi
$ composer install
$ cp .env.example .env
$ php artisan key:generate
$ nano .env
APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:gEElyp0rOR1LF8PfEjqfB7BO5VkfdyAQQ3v+HlPUrjA=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://coreapi.dev
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=siwecos_core_api
DB_USERNAME=siwecos
DB_PASSWORD=siwecos
$ php artisan create:mastertoken
create Mastertoken
Please save the following token, it is required for any token operation
mastertoken: Mlt0PRYYy+fBAE6LpSruASUx
$ valet link
Github Page swagger npm package
just start from /Documentation
swagger project edit
To start development in a docker environment just switch to the laradock folder and run:
docker-compose up -d caddy mariadb
If you want to use the artisan commands or composer, just use the workspace container:
docker-compose exec --user laradock workspace bash
Further information at the Laradock Project Website
With the custom laradock caddy server you can easily test the API via swagger.
Just set host: localhost and basePath: /api/v1.
Content type
Image
Digest
Size
280.9 MB
Last updated
over 5 years ago
docker pull siwecos/siwecos-core-api