Skip to content

Commit 4e37260

Browse files
author
Keiran Kozlowski
committed
initial
0 parents  commit 4e37260

File tree

12 files changed

+15790
-0
lines changed

12 files changed

+15790
-0
lines changed

.eslintrc.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true,
5+
"node": true,
6+
"jest": true
7+
},
8+
"extends": [
9+
"eslint:recommended"
10+
],
11+
"parserOptions": {
12+
"ecmaVersion": 12,
13+
"sourceType": "module"
14+
},
15+
"rules": {}
16+
}

.gitignore

Lines changed: 240 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,240 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
lerna-debug.log*
8+
9+
# Diagnostic reports (https://nodejs.org/api/report.html)
10+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11+
12+
# Runtime data
13+
pids
14+
*.pid
15+
*.seed
16+
*.pid.lock
17+
18+
# Directory for instrumented libs generated by jscoverage/JSCover
19+
lib-cov
20+
21+
# Coverage directory used by tools like istanbul
22+
coverage
23+
*.lcov
24+
25+
# nyc test coverage
26+
.nyc_output
27+
28+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29+
.grunt
30+
31+
# Bower dependency directory (https://bower.io/)
32+
bower_components
33+
34+
# node-waf configuration
35+
.lock-wscript
36+
37+
# Compiled binary addons (https://nodejs.org/api/addons.html)
38+
build/Release
39+
40+
# Dependency directories
41+
node_modules/
42+
jspm_packages/
43+
44+
# Snowpack dependency directory (https://snowpack.dev/)
45+
web_modules/
46+
47+
# TypeScript cache
48+
*.tsbuildinfo
49+
50+
# Optional npm cache directory
51+
.npm
52+
53+
# Optional eslint cache
54+
.eslintcache
55+
56+
# Microbundle cache
57+
.rpt2_cache/
58+
.rts2_cache_cjs/
59+
.rts2_cache_es/
60+
.rts2_cache_umd/
61+
62+
# Optional REPL history
63+
.node_repl_history
64+
65+
# Output of 'npm pack'
66+
*.tgz
67+
68+
# Yarn Integrity file
69+
.yarn-integrity
70+
71+
# dotenv environment variables file
72+
.env
73+
.env.test
74+
75+
# parcel-bundler cache (https://parceljs.org/)
76+
.cache
77+
.parcel-cache
78+
79+
# Next.js build output
80+
.next
81+
out
82+
83+
# Nuxt.js build / generate output
84+
.nuxt
85+
dist
86+
87+
# Gatsby files
88+
.cache/
89+
# Comment in the public line in if your project uses Gatsby and not Next.js
90+
# https://nextjs.org/blog/next-9-1#public-directory-support
91+
# public
92+
93+
# vuepress build output
94+
.vuepress/dist
95+
96+
# Serverless directories
97+
.serverless/
98+
99+
# FuseBox cache
100+
.fusebox/
101+
102+
# DynamoDB Local files
103+
.dynamodb/
104+
105+
# TernJS port file
106+
.tern-port
107+
108+
# Stores VSCode versions used for testing VSCode extensions
109+
.vscode-test
110+
111+
# yarn v2
112+
.yarn/cache
113+
.yarn/unplugged
114+
.yarn/build-state.yml
115+
.yarn/install-state.gz
116+
.pnp.*
117+
# Logs
118+
logs
119+
*.log
120+
npm-debug.log*
121+
yarn-debug.log*
122+
yarn-error.log*
123+
lerna-debug.log*
124+
.pnpm-debug.log*
125+
126+
# Diagnostic reports (https://nodejs.org/api/report.html)
127+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
128+
129+
# Runtime data
130+
pids
131+
*.pid
132+
*.seed
133+
*.pid.lock
134+
135+
# Directory for instrumented libs generated by jscoverage/JSCover
136+
lib-cov
137+
138+
# Coverage directory used by tools like istanbul
139+
coverage
140+
*.lcov
141+
142+
# nyc test coverage
143+
.nyc_output
144+
145+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
146+
.grunt
147+
148+
# Bower dependency directory (https://bower.io/)
149+
bower_components
150+
151+
# node-waf configuration
152+
.lock-wscript
153+
154+
# Compiled binary addons (https://nodejs.org/api/addons.html)
155+
build/Release
156+
157+
# Dependency directories
158+
node_modules/
159+
jspm_packages/
160+
161+
# Snowpack dependency directory (https://snowpack.dev/)
162+
web_modules/
163+
164+
# TypeScript cache
165+
*.tsbuildinfo
166+
167+
# Optional npm cache directory
168+
.npm
169+
170+
# Optional eslint cache
171+
.eslintcache
172+
173+
# Microbundle cache
174+
.rpt2_cache/
175+
.rts2_cache_cjs/
176+
.rts2_cache_es/
177+
.rts2_cache_umd/
178+
179+
# Optional REPL history
180+
.node_repl_history
181+
182+
# Output of 'npm pack'
183+
*.tgz
184+
185+
# Yarn Integrity file
186+
.yarn-integrity
187+
188+
# dotenv environment variables file
189+
.env
190+
.env.test
191+
.env.production
192+
193+
# parcel-bundler cache (https://parceljs.org/)
194+
.cache
195+
.parcel-cache
196+
197+
# Next.js build output
198+
.next
199+
out
200+
201+
# Nuxt.js build / generate output
202+
.nuxt
203+
dist
204+
205+
# Gatsby files
206+
.cache/
207+
# Comment in the public line in if your project uses Gatsby and not Next.js
208+
# https://nextjs.org/blog/next-9-1#public-directory-support
209+
# public
210+
211+
# vuepress build output
212+
.vuepress/dist
213+
214+
# Serverless directories
215+
.serverless/
216+
217+
# FuseBox cache
218+
.fusebox/
219+
220+
# DynamoDB Local files
221+
.dynamodb/
222+
223+
# TernJS port file
224+
.tern-port
225+
226+
# Stores VSCode versions used for testing VSCode extensions
227+
.vscode-test
228+
229+
# yarn v2
230+
.yarn/cache
231+
.yarn/unplugged
232+
.yarn/build-state.yml
233+
.yarn/install-state.gz
234+
.pnp.*
235+
236+
# Mac cruft
237+
.DS_Store
238+
239+
# VSCode
240+
.vscode

README.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
## Advanced CSS and Intro to JavaScript
2+
3+
## Objects
4+
5+
## Objectives
6+
7+
- use objects to store and access data
8+
- learn to create methods on objects, and utilize the `this` keyword
9+
10+
## Introduction
11+
12+
You've been contracted by a restaurant to start building out their website. Before you work on any of the styling, you need to organzine your data in JavaScript. In this challenge you will work with different objects, constructors, and arrays of objects to manipulate data.
13+
14+
## Instructions
15+
16+
### Task 1: Set up Project
17+
18+
Using VSCode and Command Line:
19+
20+
21+
1. Fork the repo
22+
2. Go into canvas and connect your reop to codegrade
23+
3. Clone your forked version of the repo
24+
4. DO NOT CREATE A BRANCH. You will be pushing your changes to the main/master today
25+
5. cd into your repo
26+
6. open the terminal in your vs code and type `npm install`
27+
7. next type `npm run test` in your terminal
28+
8. Complete your work making regular commits to main/ master your codegrade score will update each time you make a push.
29+
30+
### Task 2: MVP
31+
32+
Find the file `index.js` and complete the tasks for MVP.
33+
34+
### Testing & Debugging
35+
36+
Open a second terminal inside of your project by clicking on the split terminal icon
37+
![alt text](assets/split_terminal.png "Split Terminal")
38+
39+
Inside of your second terminal type `npm start`
40+
![alt text](assets/npm_start.png "type npm start")
41+
42+
You will be running your tests in one terminal and debugging in the other. As you work on your code you should make use of `console.log` to check your progress and debug.
43+
![alt text](assets/tests_debug_terminal_final.png "your terminal should look like this")
44+
45+
### Task 3: Stretch
46+
47+
There are several stretch goals inside `index.js`. You may work on these once you have finished MVP requirements for the day!
48+
49+
## FAQs
50+
51+
**Why aren't my results showing up in the console?**
52+
53+
Make sure you are invoking your function after defining it in order to view results in the console.
54+
55+
## Resources
56+
57+
[What the Beep is `this` in JavaScript?](https://dev.to/brityhemming/what-the-beep-is-this-in-javascript-483o)
58+
59+
## Submission format
60+
61+
Please submit your project via codegrade by following [these instructions](https://notion.so.bloomtech.BloomTech-Git-Flow-Step-by-step-269f68ae3bf64eb689a8328715a179f9) See part 2, submitting an assignment with codegrade

assets/npm_start.png

684 KB
Loading

assets/split_terminal.png

621 KB
Loading
791 KB
Loading

babel.config.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
module.exports = {
2+
env: {
3+
test: {
4+
plugins: [
5+
'@babel/plugin-transform-runtime',
6+
],
7+
presets: [
8+
[
9+
'@babel/preset-env',
10+
{
11+
modules: 'commonjs',
12+
debug: false
13+
}
14+
]
15+
]
16+
}
17+
}
18+
};

0 commit comments

Comments
 (0)