the Student Success Tool is built on:
-
Laravel Framework. Documentation
-
Inertiajs. Documentation
-
Reactjs. Documentation
-
Tailwindcss. Documentation
DO NOT DO THIS FOR fellows dev environment or local development as this has already been done
- Create a Cloud Bucket to store the static files (the files we'll generate in the cloudbuild autodeploy flow)
- Update the cors-config.json with allowed origin URLs
- Run
gcloud storage buckets update gs://<BUCKET_NAME> --cors-file=cors-config.json
- Run
gsutil cors get gs://<BUCKET_NAME>
to check that the cors config applied to the bucket - Run
gcloud storage buckets add-iam-policy-binding gs://<BUCKET_NAME> --member=allUsers --role=roles/storage.objectViewer
to enable public internet access to the bucket
NOTE: DO NOT STORE SENSITIVE/SECRET INFO IN THIS BUCKET -- this bucket should be only used to store static vite generated files.
- Static Asset Creation: handled automatically on push by Cloudbuild.yaml using npm install and npm build and cp to cloud bucket Cloud Build
- Database migrations: Cloud Run Job
- Auto-deploy: orchestrated by Cloud Build (currently stored inline) on Github push
brew install composer
(Assuming you are on Mac, but install as you think best)brew install npm
(Assuming you are on Mac, but install as you think best)
- Clone this project
cd [project-name]
composer install
- Copy
.env.example
file to.env
in the root of the repo folder. npm install
npm run build
php artisan key:generate
php artisan migrate
php artisan serve