From 87d47957a8a6348eccd66738f56b0367d239698f Mon Sep 17 00:00:00 2001 From: "D.J. Marcolesco" Date: Thu, 8 Oct 2020 18:13:23 +0000 Subject: [PATCH 1/7] =?UTF-8?q?=F0=9F=A4=96=20devcontainer:=20test=20post?= =?UTF-8?q?=20create=20command?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devcontainer/devcontainer.json | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..c7895c8 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,3 @@ +{ + "postCreateCommand": "composer install" +} \ No newline at end of file From d27d781f2bb0be28be84fb53c2a1dae0bcecc3cf Mon Sep 17 00:00:00 2001 From: "D.J. Marcolesco" Date: Thu, 8 Oct 2020 20:20:50 +0000 Subject: [PATCH 2/7] =?UTF-8?q?=F0=9F=A4=96=20devcontainer:=20add=20codesp?= =?UTF-8?q?ace=20build=20and=20serve=20tasks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 3 +++ .vscode/tasks.json | 53 +++++++++++++++++++++++++++++++++++++++++++ Makefile | 14 +++++++++++- 3 files changed, 69 insertions(+), 1 deletion(-) create mode 100644 .vscode/settings.json create mode 100644 .vscode/tasks.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..fd1f682 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "task.quickOpen.skip": true +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..8b431bd --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,53 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "Build", + "dependsOn": [ + "Server Build", + "Client Build" + ], + "group": "build", + "isBackground": true, + "problemMatcher": [] + }, + { + "label": "Client Build", + "command": "npm run watch", + "type": "shell", + "args": [], + "problemMatcher": { + "base": "$tsc-watch", + "background": { + "activeOnStart": true, + "beginsPattern": "webpack is watching the files", + "endsPattern": "Compiled successfully" + } + }, + "presentation": { + "group": "build", + "reveal": "always" + }, + "isBackground": true + }, + { + "label": "Server Build", + "command": "php artisan serve", + "type": "shell", + "args": [], + "problemMatcher": { + "base": "$tsc-watch", + "background": { + "activeOnStart": true, + "beginsPattern": "Laravel development server started", + "endsPattern": "Laravel development server started" + } + }, + "presentation": { + "group": "build", + "reveal": "always" + }, + "isBackground": true + } + ] +} \ No newline at end of file diff --git a/Makefile b/Makefile index 08bde85..143484f 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,18 @@ setup: deps build app-key +codespace: + # Backend + composer install + touch database/database.sqlite + cp .devcontainer.env.example .env + php artisan key:generate + php artisan migrate + + # Frontend + npm install + code README.md + dev: docker-compose up client caddy php-fpm db @@ -22,4 +34,4 @@ db-migrate: docker-compose run --rm php php artisan migrate app-key: - docker-compose run --rm php php artisan key:generate + docker-compose run --rm php php artisan key:generate \ No newline at end of file From 495c329aaa87bcdcf4b2c4093b54cb4d06b93e5f Mon Sep 17 00:00:00 2001 From: "D.J. Marcolesco" Date: Thu, 8 Oct 2020 20:33:11 +0000 Subject: [PATCH 3/7] =?UTF-8?q?=F0=9F=A4=96=20devcontainer:=20fix=20makefi?= =?UTF-8?q?le?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devcontainer/devcontainer.json | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index c7895c8..de0bbf2 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,3 +1,3 @@ { - "postCreateCommand": "composer install" + "postCreateCommand": "make codespaces" } \ No newline at end of file diff --git a/Makefile b/Makefile index 143484f..a4b4edd 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ setup: deps build app-key -codespace: +codespaces: # Backend composer install touch database/database.sqlite From aa9040c89d5746aa8e5b5302c6570a48adc54d6c Mon Sep 17 00:00:00 2001 From: "D.J. Marcolesco" Date: Thu, 8 Oct 2020 21:35:15 +0000 Subject: [PATCH 4/7] =?UTF-8?q?=F0=9F=A4=96=20devcontainer:=20forward=20po?= =?UTF-8?q?rts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devcontainer/devcontainer.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index de0bbf2..851d0cb 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,3 +1,6 @@ { - "postCreateCommand": "make codespaces" + "postCreateCommand": "make codespaces", + "forwardPorts": [ + 8000 + ] } \ No newline at end of file From 17157a1e17e068b80bfc7254e8df386ed0bce5ee Mon Sep 17 00:00:00 2001 From: "D.J. Marcolesco" Date: Fri, 9 Oct 2020 15:24:28 +0000 Subject: [PATCH 5/7] =?UTF-8?q?=F0=9F=93=96=20devcontainer:=20update=20rea?= =?UTF-8?q?dme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 875d8c3..70a280d 100644 --- a/README.md +++ b/README.md @@ -97,6 +97,20 @@ php artisan serve You're ready to go! Visit [http://127.0.0.1:8000](http://127.0.0.1:8000) in your browser. + + +### GitHub Codespaces Setup + +> You will need access to Codespaces for these steps to work: https://github.com/features/codespaces + +Create a Codespace for this repo by following this guide: https://docs.github.com/en/free-pro-team@latest/github/developing-online-with-codespaces/creating-a-codespace. All dependencies will be automatically installed after creation. + +Connecting to the Codespace using Visual Studio Code is recommended. See this guide for more details: https://docs.github.com/en/free-pro-team@latest/github/developing-online-with-codespaces/using-codespaces-in-visual-studio-code + +Once installation is complete, start the client and server in the workspace by typing `task build` in **Command Palette** or **Go To File** (open the palette from the menu, or with `Ctrl + P`, `Cmd + P`, or `F1`). A split terminal will spawn with the build tasks running, automatically forwarding required ports. + +Visit [http://127.0.0.1:8000](http://127.0.0.1:8000) in your browser! + ## Notifications The Job Board will send an email and Slack notification when new jobs are added to the board. The recipient of these notifications is configured in the `.env` file. Set the `JOBS_EMAIL` value to a valid email address and the `JOBS_SLACK_HOOK` to a valid [Slack webhook](https://api.slack.com/messaging/webhooks). Both of these settings are optional and the Job Board should still function without them set. From ff291a30b65a7686b759e98c6fec90d9289174d2 Mon Sep 17 00:00:00 2001 From: "D.J. Marcolesco" Date: Thu, 5 Nov 2020 14:53:42 +0000 Subject: [PATCH 6/7] =?UTF-8?q?=F0=9F=A4=96=20add=20missing=20env=20keys?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From 721ffc4f7220d3b411778d658952bd6941936971 Mon Sep 17 00:00:00 2001 From: "D.J. Marcolesco" Date: Thu, 5 Nov 2020 14:55:29 +0000 Subject: [PATCH 7/7] =?UTF-8?q?=F0=9F=94=A5=20oops?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devcontainer.env.example | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .devcontainer.env.example diff --git a/.devcontainer.env.example b/.devcontainer.env.example new file mode 100644 index 0000000..a89cc66 --- /dev/null +++ b/.devcontainer.env.example @@ -0,0 +1,35 @@ +APP_NAME="devICT Job Board" +APP_ENV=local +APP_KEY= +APP_DEBUG=true +APP_URL=http://jobs.devict.test + +LOG_CHANNEL=stack + +DB_CONNECTION=sqlite +DB_HOST=db +DB_PORT=5432 +DB_DATABASE=/home/codespace/workspace/jobs.devict/database/database.sqlite +DB_USERNAME=jobs +DB_PASSWORD= + +JOBS_EMAIL= +JOBS_SLACK_HOOK= + +BROADCAST_DRIVER=log +CACHE_DRIVER=file +QUEUE_CONNECTION=sync +SESSION_DRIVER=file +SESSION_LIFETIME=120 + +MAIL_DRIVER=smtp +MAIL_HOST=smtp.mailtrap.io +MAIL_PORT=2525 +MAIL_USERNAME=null +MAIL_PASSWORD=null +MAIL_ENCRYPTION=null +MAIL_FROM_ADDRESS=null +MAIL_FROM_NAME="${APP_NAME}" + +MAILGUN_DOMAIN= +MAILGUN_SECRET=