This application is built with the Laravel framework, using React.js and TypeScript for the front-end.
It uses Inertia.js as a routing and data layer to allow us to use standard Laravel routing, while using a JavaScript framework like React for user interfaces. It uses Inertia.js as a routing and data layer to allow us to use standard Laravel routing, while using a JavaScript framework like React for user interfaces.
- View composer.json to see back-end dependencies
- View package.json to see front-end dependencies
You have two options for local installation:
- Option 1: MacOS installation
- Option 2: Docker
You can edit your .env
file to change the DEV_USER
variables however you like. By default you will be able to log in with "admin@nearyou.co.nz and a password of "pw". You can also click the "Admin login" button in the bottom right corner.
You can run any of the below from the application root in your terminal. If you are using Docker (with Laravel Sail), replace any instances of php
with sail
.
Completely wipe the application, generate seed data and refresh search indexes.
php artisan app:refresh
Generate TypeScript types for application models
php artisan typescript:generate
Refresh the database with seed data
php artisan migrate:fresh --seed
The below command will update search indexes and settings.
See app/Console/Commands/RefreshSearch.php
.
php artisan search:refresh
View the README for CI/CD information and hosting infrastructure.