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

week_1 Assignment #67

Open
wants to merge 40 commits into
base: week1_assignment
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
a3cc933
Create LICENSE
hrushikeshj Dec 24, 2022
f021a68
Add instructions for dev devcontainer
hrushikeshj Dec 25, 2022
3c77263
add week-2 to readme
mittal-parth Dec 26, 2022
6c71da6
change github link to youtube link for week-2
mittal-parth Dec 26, 2022
e17608a
[Week 2] Theory and assignment (#60)
hrushikeshj Dec 26, 2022
36f07c5
Add week 2 and installation guide
hrushikeshj Dec 26, 2022
71c385a
Update README.md
hrushikeshj Dec 26, 2022
4eec818
Update prime_test.rb
hrushikeshj Dec 28, 2022
677067b
Week 2 test require set
hrushikeshj Dec 28, 2022
35d5f7f
Merge branch 'main' of https://github.com/IRIS-NITK/IRIS-RoR-Bootcamp…
hrushikeshj Dec 28, 2022
c6cfaa0
Week 2 test require set
hrushikeshj Dec 28, 2022
b98ad46
Add hello_wolrd from previous year
hrushikeshj Jan 10, 2023
ef6ea0e
Add hello_wolrd from previous year
hrushikeshj Jan 10, 2023
f07a650
Merge pull request #99 from IRIS-NITK/week3_assignment
hrushikeshj Jan 10, 2023
ae786d7
Football scaffold
hrushikeshj Jan 10, 2023
43a7123
add hello_world test
hrushikeshj Jan 10, 2023
3a2d7c1
Merge branch 'main' of https://github.com/IRIS-NITK/IRIS-RoR-Bootcamp…
hrushikeshj Jan 10, 2023
6409413
Update README.md
hrushikeshj Jan 10, 2023
14066df
Update README.md
hrushikeshj Jan 10, 2023
a73e7fe
update gitignore
hrushikeshj Jan 10, 2023
e9de726
Merge branch 'main' of https://github.com/IRIS-NITK/IRIS-RoR-Bootcamp…
hrushikeshj Jan 10, 2023
231ad31
Update README.md
hrushikeshj Jan 11, 2023
28e54c7
Merge branch 'main' into week3_assignment
hrushikeshj Jan 11, 2023
1c2644f
Add football assignment
hrushikeshj Jan 12, 2023
8ce42c0
Add football assignment
hrushikeshj Jan 12, 2023
41b465e
Update README.md
hrushikeshj Jan 12, 2023
8b67128
add tests
hrushikeshj Jan 13, 2023
0a1ae8d
Add week 3 tests
hrushikeshj Jan 13, 2023
27b02ad
Add week 3 tests
hrushikeshj Jan 13, 2023
5c5a1cd
Add week 3 tests
hrushikeshj Jan 13, 2023
77ab65b
Add week 3 tests
hrushikeshj Jan 13, 2023
221d1cd
Update README.md
hrushikeshj Jan 13, 2023
e314722
Add creating tables for week-3 (#108)
mittal-parth Jan 13, 2023
c6dea68
Update README.md
hrushikeshj Jan 18, 2023
4db1b66
Update README.md
hrushikeshj Jan 18, 2023
a02d6d9
Add Week 4 Resources (#113)
mittal-parth Jan 29, 2023
ef8052b
remove already scaffolded code
mittal-parth Jan 30, 2023
fdc37b2
Week-4: remove already scaffolded code
mittal-parth Jan 30, 2023
4d5fba3
Week-4: Add logs, more controller info and screenshots
mittal-parth Jan 30, 2023
d6997b7
Add week 4 link
mittal-parth Feb 5, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/pr-labeler.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/pr-labeler.yml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/week2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: 'Week 2 Assignment'

on:
pull_request:
types: [synchronize, opened, reopened, edited]
branches:
- 'week2_*'

workflow_dispatch:

jobs:
week2:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0.5
working-directory: week_2
bundler-cache: true

- name: Test Prime
working-directory: week_2
run: ruby prime_test.rb

- name: Test Pet store
working-directory: week_2
run: ruby pet_test.rb
39 changes: 39 additions & 0 deletions .github/workflows/week3_intro.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: 'Week 3 getting started'

on:
pull_request:
types: [synchronize, opened, reopened, edited]
branches:
- 'week3_*'

workflow_dispatch:

jobs:
week3:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install Ruby
uses: ruby/setup-ruby@v1
with:
working-directory: week_3/hello_world
bundler-cache: true

- name: Install NPM packages
uses: bahmutov/npm-install@v1
with:
working-directory: week_3/hello_world

- name: Copy Test File
working-directory: week_3
run: cp page_controller_test.rb hello_world/test/controllers

- name: Test Rails
working-directory: week_3/hello_world
run: |
bundle exec rails db:create
bundle exec rails db:migrate
bundle exec rails test
35 changes: 35 additions & 0 deletions .github/workflows/week3_model.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: 'Week 3 Model'

on:
pull_request:
types: [synchronize, opened, reopened, edited]
branches:
- 'week3_*'

workflow_dispatch:

jobs:
week3_model:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install Ruby
uses: ruby/setup-ruby@v1
with:
working-directory: week_3/football
bundler-cache: true

- name: Install NPM packages
uses: bahmutov/npm-install@v1
with:
working-directory: week_3/football

- name: Test FootballFPlayers
working-directory: week_3/football
run: |
bundle exec rails db:create
bundle exec rails db:migrate
bundle exec rails test:models
35 changes: 35 additions & 0 deletions .github/workflows/week4_assignement.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: 'Week 3 Model'

on:
pull_request:
types: [synchronize, opened, reopened, edited]
branches:
- 'week4_*'

workflow_dispatch:

jobs:
week3_model:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install Ruby
uses: ruby/setup-ruby@v1
with:
working-directory: week_4/activity-tracker
bundler-cache: true

- name: Install NPM packages
uses: bahmutov/npm-install@v1
with:
working-directory: week_4/activity-tracker

- name: Test Controller Actions
working-directory: week_4/activity-tracker
run: |
bundle exec rails db:create
bundle exec rails db:migrate
bundle exec rails test
60 changes: 60 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
*.rbc
capybara-*.html
.rspec
/db/*.sqlite3
/db/*.sqlite3-journal
/db/*.sqlite3-[0-9]*
**/db/*.sqlite3
**/db/*.sqlite3-journal
**/db/*.sqlite3-[0-9]*
/public/system
/coverage/
/spec/tmp
*.orig
rerun.txt
pickle-email-*.html

# Ignore all logfiles and tempfiles.
/log/*
/tmp/*
!/log/.keep
!/tmp/.keep

# dotenv
# TODO Comment out this rule if environment variables can be committed
.env

## Environment normalization:
/.bundle
/vendor/bundle

# these should all be checked in to normalize the environment:
# Gemfile.lock, .ruby-version, .ruby-gemset

# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
.rvmrc

# if using bower-rails ignore default bower_components path bower.json files
/vendor/assets/bower_components
*.bowerrc
bower.json

# Ignore pow environment settings
.powenv


# Ignore node_modules
node_modules/


# Ignore yarn files
/yarn-error.log
yarn-debug.log*
.yarn-integrity


**/imp.rb
**/p_imp.rb

**/log/*
**/tmp/*
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 IRIS-NITK

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
25 changes: 24 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,31 @@

## [Essential Git](/essential_git.md)

## [Installation Guide](/setup)
We have provided three ways of setting up a development environment,
[Local Setup](/setup/local_setup.md), [GitHub codespaces](/setup/github_codespaces.md)
and [Dev Container](/setup/dev_container.md). We recommend you to choose [GitHub codespaces](/setup/github_codespaces.md)
if you face any issues while installing ruby [locally](/setup/local_setup.md).

> We recommend sticking to the versions mentioned in the Installation Guide and
> run commands exactly as instructed, as all assignments in this Bootcamp are
> tested with these versions.

## [Week 1 - HTML and CSS](/week_1)
In the first week, we will introduce you to basic concepts related to Web Development and Git.

## [Week 2 - Ruby](/week_2)
In this week, we'll take a look at Ruby and instructions to get your device ready for creating Ruby on Rails projects.

## [Week 3 - Getting Started with Rails and Model](/week_3)
In this we will learn how to install Ruby and Rails,
create a new Rails project and build a simple website.

Later we will take a closer look at Model of the MVC Architecture and talk about databases and working with records.

## [Week 4 - Controllers and Authentication](/week_4)

This week, we will look into controllers, routing and authentication.

## Contact
In case of doubts related to the Bootcamp, feel free to reach out to the mentors on the [**#doubts**](https://discord.com/channels/1052463702558908416/1052467811143913552) channel on [Discord](https://discord.gg/Gb3R7CFe).
In case of doubts related to the Bootcamp, feel free to reach out to the mentors on the [**#doubts**](https://discord.com/channels/1052463702558908416/1052467811143913552) channel on [Discord](https://discord.gg/HQKpB6XH).
10 changes: 7 additions & 3 deletions setup/dev_container.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,12 @@ 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.
<img width="960" alt="r" src="https://user-images.githubusercontent.com/66632353/208943230-bc1fc5c4-a8fe-4b05-9ad6-2c65ae32a2b4.png">
* Open the repo in VS code and press <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>p</kbd> to bring up the Command Palette,
and search for command **Dev Containers: Reopen in Container** and execute it. 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.

<img width="960" alt="dev_cont" src="https://user-images.githubusercontent.com/66632353/209476750-c8bec9ca-0ea5-4f3c-a548-a55eef8da866.png">

* 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.
Expand All @@ -44,4 +48,4 @@ The container has `rvm`, `node` and `yarn` preinstalled so you can get started o

--------------------------------------------------

Once done head over [here](./README.md#rvm), to learn about RVM and gemsets.
Once done head over [here](./README.md#rvm), to learn about RVM and gemsets.
Loading