Bladeren bron

Updated Readme

procodergw 2 jaren geleden
bovenliggende
commit
2a1f829bf3
1 gewijzigde bestanden met toevoegingen van 14 en 6 verwijderingen
  1. 14 6
      README.md

+ 14 - 6
README.md

@@ -4,16 +4,24 @@
 
 - PHP 8.0 or above
 - MySQL Database, SQLite should work
+- Composer installed globally
+- 
 
 ### Run the application 
 
-- Step 1: Clone Repo to local computer to a directory of your choosing and enter that directory in terminal
-- Step 2: Run `npm install` to install npm dependencies
-- Step 3: Run `composer install` to install composer dependencies
-- Step 4: Run `php artisan migrate` to publish database tables
-- Step 5: Run `npm run dev` to init Vite run
-- Step 6: Click on the `.test` URL provided bt Vite
+- Step 1: Clone Repo to local computer/server to a directory of your choosing and enter that directory in terminal
+- Step 2: Run `composer install` to install composer dependencies
+- Step 3: Run `php artisan migrate` to publish database tables
 
+### Production Environment
+- Step 4: Run `vite build` in the root directory of the project
+- Step 5: Serve site using `nginx` config or `php artisan serve`
+
+### Developer / Local Environment
+- Step 4: Edit the `.test` host in the `vite.config.js` file
+- Step 5: Run `vite` command in terminal for root directory 
+  - Note: Do not close this window.
+- Step 6: Click on the `.test` URL provided by Vite in the terminal window.
 
 You should now have a working version of the application in your browser.