This is a small laravel/inertia/react application.
It pulls a list of patients from a public FHIR API then displays them and allows for the drilldown to an individual patinet.
Please extend the application to allow a user to do the following
- Search for by name
- Add pagination to the table to allow a user to navigate through the pages
- Clone this repo
- Create a new private repo and push to GitHub
- Make changes as required below
- Share with GitHub users
karl-d
,Matt-Web
andkibbonz
There are a couple of options to get it running:
docker run --rm --interactive --tty --volume $PWD:/app --user $(id -u):$(id -g) composer install
to install the dependencies- Copy
.env.example
to `.env vendor/bin/sail artisan key:generate
to generate the application keyvendor/bin/sail up
to start up the application (NOTE: This could take a while to build the first time)vendor/bin/sail npm install
to install npm dependenciesvendor/bin/sail npm run dev
to run the React build processvendor/bin/sail artisan migrate --seed
to run the React build process- Login to the application at
http://localhost/login
using the email and password in the DatabaseSeeder.php
Requires PHP >=8.1
touch database.sqlite
to create a local database (take not of the absolute path for step 3)- Copy
.env.example
to `.env - Update database reference in the .env file
DB_CONNECTION=sqlite
DB_DATABASE=/absolute/path/to/database.sqlite
DB_FOREIGN_KEYS=true
composer install
php artisan key:generate
to generate the application keynpm install
to install npm dependenciesnpm run dev
to run the React build processphp artisan migrate --seed
to run the React build processphp artisan serve
to start up the application- Login to the application at url returned from the above command
using the email and password in the
DatabaseSeeder.php
You could use any other PHP stack that you are familiar with like Valet or Homestead