- PHP 8.3
- Composer 2 Installed
- In your terminal change working directory to backend
composer install
to install dependenciescp .env.example .env
to 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:generate
to generate application keyphp artisan migrate --seed
to create tables and seed initial dataphp artisan serve
to 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 .env
to create environment file from example- Change .env as needed
bun install
to install dependenciesbun dev
to run application