Skip to content

Commit 3d84f04

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents 24a9fcb + 9d4b3a7 commit 3d84f04

File tree

6 files changed

+19
-10
lines changed

6 files changed

+19
-10
lines changed
File renamed without changes.
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
DROP TABLE IF EXISTS Companies;
2-
CREATE TABLE IF NOT EXISTS Companies (CompanyID INTEGER PRIMARY KEY, CompanyName TEXT);
3-
INSERT INTO Companies (CompanyID, CompanyName) VALUES (1, 'Soda Co.'), (2, 'TV Media'), (3,'Software Co.');
4-
5-
DROP TABLE IF EXISTS Employees;
6-
CREATE TABLE IF NOT EXISTS Employees (EmployeeID INTEGER PRIMARY KEY, EmployeeName TEXT, CompanyID INTEGER, FOREIGN KEY (CompanyID) REFERENCES Companies(CompanyID));
7-
INSERT INTO Employees (EmployeeID, EmployeeName, CompanyID) VALUES (1, 'Olivia Johnson', 2), (2, 'Noah Jones', 3), (3, 'James Smith', 1), (4, 'Sophia Martinez', 2);
1+
DROP TABLE IF EXISTS Companies;
2+
CREATE TABLE IF NOT EXISTS Companies (CompanyID INTEGER PRIMARY KEY, CompanyName TEXT);
3+
INSERT INTO Companies (CompanyID, CompanyName) VALUES (1, 'Soda Co.'), (2, 'TV Media'), (3,'Software Co.');
4+
5+
DROP TABLE IF EXISTS Employees;
6+
CREATE TABLE IF NOT EXISTS Employees (EmployeeID INTEGER PRIMARY KEY, EmployeeName TEXT, CompanyID INTEGER, FOREIGN KEY (CompanyID) REFERENCES Companies(CompanyID));
7+
INSERT INTO Employees (EmployeeID, EmployeeName, CompanyID) VALUES (1, 'Olivia Johnson', 2), (2, 'Noah Jones', 3), (3, 'James Smith', 1), (4, 'Sophia Martinez', 2);

package.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,21 @@
22
"name": "cf-tutor",
33
"version": "1.1.0",
44
"description": "",
5-
"main": "index.js",
5+
"main": "src/index.js",
66
"type": "module",
77
"scripts": {
88
"start": "tsx src/index.ts",
99
"test": "echo \"Error: no test specified\" && exit 1"
1010
},
11+
"files": [
12+
"challenge_files/",
13+
"media/",
14+
"node_modules/",
15+
"progress/",
16+
"scaffolding/",
17+
"src/",
18+
"tsconfig.json"
19+
],
1120
"keywords": [],
1221
"author": "",
1322
"license": "ISC",

src/categories/d1Challenge.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const d1Challenge: Quiz = {
2222
category: 'Create a Worker that can join two D1 database tables',
2323
questions: [
2424
{
25-
question: `\n${intro}\n\n For this challenge, please open up the folder cf-tutor/challenge-files/d1-challenge. The files required to complete this challenge are located there.\n\nPress Enter to continue\n\n`,
25+
question: `\n${intro}\n\n For this challenge, please open up the folder cf-tutor/challenge_files/d1_challenge. The files required to complete this challenge are located there.\n\nPress Enter to continue\n\n`,
2626
type: 'text',
2727
correctAnswer: '',
2828
}

src/categories/workerChallenge.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const challenge: Quiz = {
1414
category: 'Create a basic Worker',
1515
questions: [
1616
{
17-
question: `\n${intro}\n\nFor this challenge, please open up the folder cf-tutor/challenge-files/worker-challenge. The files required to complete this challenge are located there.\n\n Create a JavaScript Worker and replace the index.js file of the Worker with the file located in the worker-challenge folder. This file is incomplete and contains errors such as missing if/else statements that need to be fixed. Once fixed, deploy the worker and enter the following curl command into this terminal. Be sure to replace *your-worker-name* with the name of your Worker.\n\ncurl https://*your-worker-name*.workers.dev/success\n\nYou will be able to use this terminal to interact with C3 and Wrangler, change directory and enter the CURL command to recieve responses from your Worker. Press Enter to start the challenge.`,
17+
question: `\n${intro}\n\nFor this challenge, please open up the folder cf-tutor/challenge_files/worker_challenge. The files required to complete this challenge are located there.\n\n Create a JavaScript Worker and replace the index.js file of the Worker with the file located in the worker-challenge folder. This file is incomplete and contains errors such as missing if/else statements that need to be fixed. Once fixed, deploy the worker and enter the following curl command into this terminal. Be sure to replace *your-worker-name* with the name of your Worker.\n\ncurl https://*your-worker-name*.workers.dev/success\n\nYou will be able to use this terminal to interact with C3 and Wrangler, change directory and enter the CURL command to recieve responses from your Worker. Press Enter to start the challenge.`,
1818
type: 'text',
1919
correctAnswer: '',
2020

0 commit comments

Comments
 (0)