diff --git a/.github/labeler.yml b/.github/pr-labeler.yml similarity index 100% rename from .github/labeler.yml rename to .github/pr-labeler.yml diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml index 42726802..7ddde4f9 100644 --- a/.github/workflows/pr-labeler.yml +++ b/.github/workflows/pr-labeler.yml @@ -16,4 +16,4 @@ jobs: - uses: TimonVS/pr-labeler-action@v4 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - configuration-path: .github/labeler.yml + configuration-path: .github/pr-labeler.yml diff --git a/setup/README.md b/setup/README.md new file mode 100644 index 00000000..86f4d205 --- /dev/null +++ b/setup/README.md @@ -0,0 +1,9 @@ +# Installation + +One of the following ways can used to install Ruby and RoR +- [Dev Container](./dev_container.md) +- [GitHub codespaces](./github_codespaces.md) + + +**Note** - If you are unable to install Ruby due to some reason, you can still +participate in bootcamp with the help of [GitHub codespaces](./github_codespaces.md). diff --git a/setup/dev_container.md b/setup/dev_container.md new file mode 100644 index 00000000..eb3a76c6 --- /dev/null +++ b/setup/dev_container.md @@ -0,0 +1,44 @@ +# Dev Containers +The [Visual Studio Code Dev Containers](https://code.visualstudio.com/docs/devcontainers/containers) +extension lets you use a Docker container as a full-featured development environment. + +Steps to [install](https://code.visualstudio.com/docs/devcontainers/containers#_installation) +and use dev Containers - + +## 1. Install docker +**Windows / macOs** +* If you are using windows, ensure [WSL 2](https://aka.ms/vscode-remote/containers/docker-wsl2) +back-end is enabled. Steps to install WSL2 - +[https://learn.microsoft.com/en-us/windows/wsl/install](https://learn.microsoft.com/en-us/windows/wsl/install) + +* Install [Docker Desktop for Windows/Mac](https://www.docker.com/products/docker-desktop). + +**Linux** +* Install [docker](https://docs.docker.com/desktop/install/linux-install/) + +## 2. Install Visual Studio Code +* Download and install [vscode](https://code.visualstudio.com/) +* Install [Dev Container](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack) extension for vscode. + +-------------------------------------------------- + +**Clone the repo and open it in vscode** +```bash +git clone https://github.com/IRIS-NITK/IRIS-RoR-Bootcamp-2022 +cd IRIS-RoR-Bootcamp-2022 +code . +``` +## 3. Open the folder in dev container +* Click on quick actions Status bar item, and from the dropdown select **Reopen in Container**. This uses the dev container [config file](https://github.com/IRIS-NITK/IRIS-RoR-Bootcamp-2022/blob/install-ror/.devcontainer/devcontainer.json) inside `.devcontainer` folder to create a new dev container. +r + +* The VS Code window will reload and start building the dev container. A progress notification provides status updates. +* After the build completes, VS Code will automatically connect to the container. + +------------------------------------------------- + +The folder will be reopened inside a Debian container. +The container has `rvm`, `node` and `yarn` preinstalled so you can get started off working with rails. + +![image](https://user-images.githubusercontent.com/66632353/208944762-9279ad6f-7408-480c-9c10-fd0296137f8a.png) + diff --git a/setup/github_codespaces.md b/setup/github_codespaces.md new file mode 100644 index 00000000..b0279087 --- /dev/null +++ b/setup/github_codespaces.md @@ -0,0 +1,18 @@ +# Github codespaces +A [codespace](https://docs.github.com/en/codespaces/overview) is a development environment that's hosted in the cloud. + +# Creating your codespace +* [Fork](https://docs.github.com/en/get-started/quickstart/fork-a-repo#forking-a-repository) the [IRIS-RoR-Bootcamp-2022](https://github.com/IRIS-NITK/IRIS-RoR-Bootcamp-2022) repo (if you haven't already) +* Click on **Code** and from the codespaces dropdown click on the ➕ icon to create a new codespace. + +Screenshot 2022-12-21 212710 + +* You can install the [GitHub codespaces extenction](https://marketplace.visualstudio.com/items?itemName=GitHub.codespaces) +for VScode, if don't like to work in browser. + +------------------------------------------------------------------------ + +The Github codespaces will have `rvm`, `node` and `yarn` preinstalled so you can get started off working with rails. + +![image](https://user-images.githubusercontent.com/66632353/208957960-e61db7c7-c9f7-4989-9e07-87aab5185c29.png) + diff --git a/week_1/Screenshot_20221222_193315.png b/week_1/Screenshot_20221222_193315.png new file mode 100644 index 00000000..291e13f6 Binary files /dev/null and b/week_1/Screenshot_20221222_193315.png differ diff --git a/week_1/styles.css b/week_1/styles.css new file mode 100644 index 00000000..f9836849 --- /dev/null +++ b/week_1/styles.css @@ -0,0 +1,6 @@ +form { display: table; } +p { display: table-row; } +label { display: table-cell; } +input { display: table-cell; } + + diff --git a/week_1/week01.html b/week_1/week01.html new file mode 100644 index 00000000..c92cdb42 --- /dev/null +++ b/week_1/week01.html @@ -0,0 +1,85 @@ + + + + week01 + + + + +

My Guest Book

+

Please sign my guest book. Thanks!

+
+
+

+ + +

+
+

+ + +

+
+

+ + I really like your website +
+ One of the best sites I've seen +
+ I sure wish my site looked as good as yours +
+ I've no taste and I'm pretty dense, so your site didn't do much for me + + +

+
+ + +

+ + The gorgeous picture of you +
+ All the beautiful pictures of your cats +
+ The inspiring recap of your suburban childhood +
+ The detailed list of all your Elvis memorabilia's + + +

+
+

+ +
+ +

+
+

+ + +

+
+ +

+ +
+ +

+
+ + +
+ + + \ No newline at end of file