chore: scaffold composer project and env template
This commit is contained in:
commit
5d7802991a
4 files changed
+79
No files matched your search
@@ -0,0 +1,19 @@
|
||||
APP_ENV=local
|
||||
APP_DEBUG=true
|
||||
APP_URL=http://127.0.0.1:8000
|
||||
CURRENCY=usd
|
||||
|
||||
# Database. Default is a file-based SQLite database for dev and test.
|
||||
# For MySQL/Postgres on deploy set DB_DRIVER=mysql or pgsql and fill the rest.
|
||||
DB_DRIVER=sqlite
|
||||
DB_DATABASE=database/bazaar.sqlite
|
||||
DB_HOST=127.0.0.1
|
||||
DB_PORT=3306
|
||||
DB_USERNAME=root
|
||||
DB_PASSWORD=
|
||||
|
||||
# Stripe test-mode keys. Grab them from https://dashboard.stripe.com/test/apikeys
|
||||
# Leave the placeholders in place to run the shop with payments disabled.
|
||||
STRIPE_SECRET_KEY=sk_test_placeholder
|
||||
STRIPE_PUBLISHABLE_KEY=pk_test_placeholder
|
||||
STRIPE_WEBHOOK_SECRET=whsec_placeholder
|
||||
@@ -0,0 +1,7 @@
|
||||
/vendor/
|
||||
/.env
|
||||
/database/*.sqlite
|
||||
/database/*.sqlite-journal
|
||||
.DS_Store
|
||||
.phpunit.result.cache
|
||||
/.phpunit.cache/
|
||||
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"name": "vulpspace/bazaar",
|
||||
"description": "Bazaar - e-commerce shop on a hand-rolled PHP microframework",
|
||||
"type": "project",
|
||||
"license": "MIT",
|
||||
"require": {
|
||||
"php": ">=8.3",
|
||||
"ext-pdo": "*",
|
||||
"stripe/stripe-php": "^16.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^11.0"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Bazaar\\": "src/"
|
||||
},
|
||||
"files": [
|
||||
"src/Support/helpers.php"
|
||||
]
|
||||
},
|
||||
"autoload-dev": {
|
||||
"psr-4": {
|
||||
"Bazaar\\Tests\\": "tests/"
|
||||
}
|
||||
},
|
||||
"config": {
|
||||
"sort-packages": true,
|
||||
"optimize-autoloader": true
|
||||
},
|
||||
"scripts": {
|
||||
"migrate": "php bin/migrate.php",
|
||||
"seed": "php bin/seed.php",
|
||||
"test": "phpunit"
|
||||
}
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
|
||||
bootstrap="vendor/autoload.php"
|
||||
colors="true"
|
||||
cacheDirectory=".phpunit.cache">
|
||||
<testsuites>
|
||||
<testsuite name="bazaar">
|
||||
<directory>tests</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
<source>
|
||||
<include>
|
||||
<directory>src</directory>
|
||||
</include>
|
||||
</source>
|
||||
</phpunit>
|
||||
Reference in new issue
Block a user