Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEMO/EXAMPLE mode #79

Closed
apolopena opened this issue Mar 30, 2021 · 1 comment
Closed

DEMO/EXAMPLE mode #79

apolopena opened this issue Mar 30, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request passed-dev-qa Optional state. Use this when QAing other peoples fixes in another branch.ready to be merged to main

Comments

@apolopena
Copy link
Owner

Problem this feature will solve

The laravel 8 default welcome page is too, basic.
There is no MySql integration by default.
There is no frontend scaffolding such as react by default.
Without programming it themselves, users cannot see how a Laravel 8 project works complete with MySQL integration, dummy data, migrations, and front end scaffolding such as react.

Background

Gitpod has default examples in the workspace dashboard however there is nothing that shows a complete project using a LAMP stack. Given that this starter project is more software than an example, Gitpod cannot use this project as is for one of their examples. If this repository could be showcased as an exmaple with a single URL then perhaps it could be used as an example by gitpod. Also users could really benefit from seeing how this starter project can be used, not to mention it can teach people how to work with Laravel and React if there is a good demo project that comes with the starter

Proposed Solution

Implement an example project that can be activating by passing in an environment variable in the url. See the Passing In Environment Variables section on the Gitpod website here.
add the variable EXAMPLE=
Where integer is the demo to be displayed (configured, installed)

Constraints and Assumptions

For now just support one example, EXAMPLE=1

EXAMPLE 1 - LAMP stack with:
laravel 8.x, MySql, phpMyAdmin, react frontend (react and react dom ^17.0.1), react-router-dom, github-changelog-generator

The following works so write this into init-optional-scaffolding.sh

curl -LJO https://github.com/apolopena/QnA-demo-skeleton/archive/refs/tags/1.0.0.tar.gz
tar -xvzf QnA-demo-skeleton-1.0.0.tar.gz --strip-components=1
rm QnA-demo-skeleton-1.0.0.tar.gz
php artisan migrate
php artisan db:seed
yarn run mix
@apolopena apolopena added the enhancement New feature or request label Mar 30, 2021
@apolopena apolopena self-assigned this Mar 30, 2021
@apolopena
Copy link
Owner Author

apolopena commented Mar 30, 2021

depends on:
#36
#80

apolopena added a commit that referenced this issue Mar 30, 2021
@apolopena apolopena added in-dev-qa passed-dev-qa Optional state. Use this when QAing other peoples fixes in another branch.ready to be merged to main and removed in-dev-qa labels Mar 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request passed-dev-qa Optional state. Use this when QAing other peoples fixes in another branch.ready to be merged to main
Projects
None yet
Development

No branches or pull requests

1 participant