Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tammytee/codespaces-laravel
A public template to start exploring the Laravel Framework using Github Codespaces.
https://github.com/tammytee/codespaces-laravel
codespaces github-codespaces laravel laravel-framework
Last synced: 24 days ago
JSON representation
A public template to start exploring the Laravel Framework using Github Codespaces.
- Host: GitHub
- URL: https://github.com/tammytee/codespaces-laravel
- Owner: tammytee
- Created: 2022-12-06T20:55:46.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-01T22:25:21.000Z (almost 2 years ago)
- Last Synced: 2024-11-06T12:56:47.639Z (2 months ago)
- Topics: codespaces, github-codespaces, laravel, laravel-framework
- Language: PHP
- Homepage:
- Size: 94.7 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GitHub Codespaces + Laravel
This Codespace has everything you need to start exploring the [Laravel Framework](https://laravel.com/).
## Specs
| Github Codespace Specs|||
| - | - | - |
| **Container Definition** | [PHP & MariaDB](https://github.com/microsoft/vscode-dev-containers/tree/main/containers/php-mariadb) (MySQL compatible) | `php 8.2-bullseye` |
| **Extensions** |||
|| [SQLTools](https://vscode-sqltools.mteixeira.dev/en/home/) Database management for VS Code | `mtxr.sqltools` |
| | SQLTools [MySQL Driver](https://vscode-sqltools.mteixeira.dev/en/drivers/my-sql/) | `mtxr.sqltools-driver-mysql` |## Getting Started
Optionally customize the database environment variables in `docker-compose.yml`. All values are set to `mariadb` by default:
```yml
db:
# ...environment:
MYSQL_ROOT_PASSWORD:
MYSQL_DATABASE:
MYSQL_USER:
MYSQL_PASSWORD:
```Then apply those values in your `.env` file:
```env
DB_DATABASE=
DB_USERNAME=
DB_PASSWORD=
```Finally, migrate and seed your database:
```sh
php artisan migrate
php artisan db:seed
```### Building the project
To bundle your assets
```sh
npm run dev
```To bundle your assets for production
```sh
npm run build
```To serve your project
```sh
php artisan serve
```
> Github Codespaces will automatically [forward ports](https://docs.github.com/en/codespaces/developing-in-codespaces/forwarding-ports-in-your-codespace) so you can view the running project on your local machine.