Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop: Setting up the restful api #1

Merged
merged 1 commit into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

version: 2.1
orbs:
composer: stockfiller/[email protected]
jobs:
run-the-tests:
docker:
- image: cimg/php:8.3
steps:
- checkout
- composer/install
workflows:
pr-or-deploy:
jobs:
- run-the-tests
17 changes: 17 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Openinnovations with Laravel - under construction Workflow

on:
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Print Under construction
run: echo "Under construction"
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
vendor
temp
web/.env
27 changes: 27 additions & 0 deletions .lando.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: restful-api-with-php-and-mysql
recipe: lamp
config:
via: apache:2.4
database: mariadb:10.11
composer_version: '2'
php: '8.3'
webroot: web
cache: none
xdebug: true
config:
php: .vscode/php.ini

services:
appserver:
overrides:
environment:
ENVIRONMENT: "local"
PHP_IDE_CONFIG: "serverName=appserver"
phpmyadmin:
type: phpmyadmin

env_file:
- .vscode/lando.env

# Lando version.
version: 3.21
3 changes: 3 additions & 0 deletions .vscode/lando.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Inject additional environment variables into every Lando service.
COMPOSER_PROCESS_TIMEOUT=600
COMPOSE_HTTP_TIMEOUT=600
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug (9003)",
"type": "php",
"request": "launch",
"port": 9003,
"log": true,
"pathMappings": {
"/app/": "${workspaceRoot}/",
}
}
]
}
7 changes: 7 additions & 0 deletions .vscode/php.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
; Xdebug settings required for PhpStorm.
xdebug.max_nesting_level = 256
xdebug.show_exception_trace = 0
xdebug.client_host = ${LANDO_HOST_IP}
xdebug.log = /tmp/xdebug.log
xdebug.mode = debug
xdebug.start_with_request = yes
10 changes: 10 additions & 0 deletions .vscode/restful-api-with-php-and-mysql.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"folders": [
{
"path": ".."
}
],
"settings": {
"git.ignoreLimitWarning": true
}
}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"git.ignoreLimitWarning": true
}
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# restful-api-with-php-and-mysql
# RESTful API with PHP and MySQL

RESTful API with PHP and MySQL
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": {
"vlucas/phpdotenv": "^5.6"
}
}
Loading
Loading