- PHP 8.3
- Composer 2 Installed
- In your terminal change working directory to backend
composer installto install dependenciescp .env.example .envto create environment file from example.- Define db connections in .env and define APP_URL, FRONTEND_URL, SESSION_DOMAIN and SANCTUM_STATEFUL_DOMAINS
php artisan key:generateto generate application keyphp artisan migrate --seedto create tables and seed initial dataphp artisan serveto serve
- APP_URL, FRONTEND_URL, SESSION_DOMAIN and SANCTUM_STATEFUL_DOMAINS must have the same top level domain
- APP_URL is the url the backend server is hosted at
- FRONTEND_URL is the url the frontend server is hosted at
- SESSION_DOMAIN and SANCTUM_STATEFUL_DOMAINS is required for authentication via sanctun. SESSION_DOMAIN must only have the domain name without the scheme and the port and SANCTUM_STATEFUL_DOMAINS takes a scheme name and a port if required
You can run the test using php artisan test. Tests are stored in backend/tests.
- bun 1.1.12
- In your terminal change working directory to fronend
cp .env.example .envto create environment file from example- Change .env as needed
bun installto install dependenciesbun devto run application