https://github.com/playfulprogramming/codecorn-courses
A mythical creature that is half-unicorn and half-codec
https://github.com/playfulprogramming/codecorn-courses
Last synced: 9 months ago
JSON representation
A mythical creature that is half-unicorn and half-codec
- Host: GitHub
- URL: https://github.com/playfulprogramming/codecorn-courses
- Owner: playfulprogramming
- Created: 2023-03-06T12:12:49.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-21T21:10:26.000Z (almost 3 years ago)
- Last Synced: 2024-10-25T01:14:44.325Z (about 1 year ago)
- Language: PHP
- Size: 425 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# codecorn-courses
A mythical creature that is half-unicorn and half-codec.
## # Docker setup
```bash
docker compose up -d
```
or full rebuild.
```bash
docker compose up -d --force-recreate --build
```
### Install the required dependencies in the docker container
```bash
docker exec -it codecorn-website cp .env.example .env
docker exec -it codecorn-website composer install
docker exec -it codecorn-website npm install
```
#### To run an interactive terminal run
```bash
docker exec -it codecorn-website bash
```
##### The proxy server requires a `cert.pem` and `key.pem` file in the `./proxy/certificates` folder but is disabled by default and not required.
## # Windows/Linux setup
Requires php with openssl enabled.
### Install the required dependencies on your machine
```bash
cp .env.example .env
composer install --ignore-platform-reqs
npm install
```
## Setup a test mail server for the 2fa and email verification steps
Follow the instructions in the [laravel docs](https://laravel.com/docs/10.x/mail#mail-and-local-development) for a test mail server.
Or fill in the `MAIL_*` variables in the `.env` file for a real mail server.
### Start the dev server
```bash
npm run dev
```
or
```bash
php artisan serve
```
#### The vite HMR server is running on port 8766
Open