Skip to content

alexthekiwi/nearyou

Repository files navigation

NearYou

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.

Installation

You have two options for local installation:

Developer user

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.

Useful commands

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.

General

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

Data

Refresh the database with seed data

php artisan migrate:fresh --seed

Search

The below command will update search indexes and settings. See app/Console/Commands/RefreshSearch.php.

php artisan search:refresh

Deployment and hosting

View the README for CI/CD information and hosting infrastructure.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages