No description
- PHP 72.8%
- Blade 26.6%
- CSS 0.5%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
All checks were successful
Tests / tests (push) Successful in 1m5s
Describe every endpoint with the token permission it needs, its parameters and an example response, and explain authentication, errors and rate limits. Link to it from the API tokens page and the homepage. |
||
| .forgejo/workflows | ||
| app | ||
| bootstrap | ||
| config | ||
| database | ||
| lang | ||
| public | ||
| resources | ||
| routes | ||
| storage | ||
| tests | ||
| .editorconfig | ||
| .env.example | ||
| .gitattributes | ||
| .gitignore | ||
| .styleci.yml | ||
| artisan | ||
| composer.json | ||
| composer.lock | ||
| docker-compose.yml | ||
| Dockerfile | ||
| package-lock.json | ||
| package.json | ||
| phpstan-baseline.neon | ||
| phpstan.neon | ||
| phpunit.xml | ||
| postcss.config.js | ||
| README.md | ||
| vite.config.js | ||
Quick start
First, you need a Postgres server. This can be achieved quickly with Podman/Docker:
podman pod create --publish 5432:5432 --publish 5050:80 --name db
podman run -d --name pg --pod db \
-e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=password \
-e POSTGRES_DB=sxc \
postgres:18
# Optional: run pgAdmin
podman run -d --name pgadmin --pod db -e PGADMIN_DEFAULT_EMAIL=test@sourcexchange.net -e PGADMIN_DEFAULT_PASSWORD=password dpage/pgadmin4
cp .env.example .env # edit .env with your credentials
php artisan migrate --seed
php artisan serve &
npm install
npm run dev
Two users are created by seeding for testing. Both have password ertyuiop:
- Admin:
test1@sourcexchange.net - Creator:
test2@sourcexchange.net
For Stripe:
stripe listen --all-snapshot --forward-to 127.0.0.1:8000/api/payments/stripe/notification
Security vulnerabilities
Please do not pentest the production website (https://www.sourcexchange.net) but rather your own local instance if need be. If you find a vulnerability, send the report to arnaud@ric-rac.org. Major security problems will be rewarded with a 100 EUR bank transfer.
License
sourcexchange.net is licensed under the MIT license.