New Services Laravel for project Position
$ git clone https://github.com/Position-Platform/services.git
$ cd services
$ cp .env.example .env
- edit & add DB & Email infos in .env
DB_DATABASE=database name
DB_USERNAME=database username
DB_PASSWORD=database password
MAIL_MAILER=smtp
MAIL_HOST=your host
MAIL_PORT=your port
MAIL_USERNAME=your username
MAIL_PASSWORD=your password
MAIL_ENCRYPTION=TLS
MAIL_FROM_ADDRESS=infos@position.cm
MAIL_FROM_NAME=Position
SCOUT_DRIVER=meilisearch
MEILISEARCH_HOST=meilisearch host
MEILISEARCH_KEY=meilisearch apikey
NEXAH_USERNAME=nexah username
NEXAH_PASSWORD=nexah password
MEILI_PORT=
API_KEY=
- edit & add Docker config in .env
APP_PORT=
FORWARD_DB_PORT=
PG_PASSWORD=
$ docker-compose up -d
$ docker exec -it position-services bash
$ composer install
$ npm install
$ npx tailwindcss --input ./resources/css/filament/admin/theme.css --output ./public/css/filament/admin/theme.css --config ./resources/css/filament/admin/tailwind.config.js --minify
$ npm run prod
$ php artisan key:generate
$ php artisan migrate
$ php artisan passport:install
$ php artisan db:seed
$ php artisan apikey:generate app1
$ php artisan storage:link
$ php artisan scribe:generate
$ php artisan scout:import "App\Models\Categorie"
$ php artisan scout:import "App\Models\SousCategorie"
$ php artisan scout:import "App\Models\Batiment"
$ php artisan scout:import "App\Models\Etablissement"
$ php artisan icons:cache
$ exit
- Add authorization in docker
go to services folder
$ chown -R www-data:www-data *
GET
, POST
, PUT
, PATCH
ou DELETE
Content-Type: application/json
Accept: application/json
X-Authorization : yourApiKey
- Documentation Link : https://prrojectUrl/docs