Skip to content

Commit

Permalink
Merge pull request #5 from Code-Agora/dev
Browse files Browse the repository at this point in the history
Routes return from database and updated data
  • Loading branch information
CheeseL0ver authored Nov 17, 2019
2 parents 17bd7b7 + 34e09e6 commit 6336077
Show file tree
Hide file tree
Showing 10 changed files with 1,563 additions and 1,173 deletions.
2,000 changes: 1,000 additions & 1,000 deletions data/answers.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion data/question_tags.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"tag_name": "javascript", "question_id": 1}, {"tag_name": "java", "question_id": 2}, {"tag_name": "c#", "question_id": 3}, {"tag_name": "php", "question_id": 4}, {"tag_name": "python", "question_id": 5}, {"tag_name": "android", "question_id": 6}, {"tag_name": "jquery", "question_id": 7}, {"tag_name": "html", "question_id": 8}, {"tag_name": "c++", "question_id": 9}, {"tag_name": "ios", "question_id": 10}, {"tag_name": "css", "question_id": 11}, {"tag_name": "mysql", "question_id": 12}, {"tag_name": "sql", "question_id": 13}, {"tag_name": "asp.net", "question_id": 14}, {"tag_name": "c", "question_id": 15}, {"tag_name": "r", "question_id": 16}, {"tag_name": "ruby-on-rails", "question_id": 17}, {"tag_name": "arrays", "question_id": 18}, {"tag_name": "node.js", "question_id": 19}, {"tag_name": ".net", "question_id": 20}, {"tag_name": "objective-c", "question_id": 21}, {"tag_name": "json", "question_id": 22}, {"tag_name": "sql-server", "question_id": 23}, {"tag_name": "angularjs", "question_id": 24}, {"tag_name": "swift", "question_id": 25}, {"tag_name": "iphone", "question_id": 26}, {"tag_name": "regex", "question_id": 27}, {"tag_name": "django", "question_id": 28}, {"tag_name": "ruby", "question_id": 29}, {"tag_name": "excel", "question_id": 30}, {"tag_name": "ajax", "question_id": 31}, {"tag_name": "python-3.x", "question_id": 32}, {"tag_name": "angular", "question_id": 33}, {"tag_name": "xml", "question_id": 34}, {"tag_name": "asp.net-mvc", "question_id": 35}, {"tag_name": "linux", "question_id": 36}]
[{"tag_name": "javascript", "question_id": 1}, {"tag_name": "java", "question_id": 2}, {"tag_name": "c#", "question_id": 3}, {"tag_name": "php", "question_id": 4}, {"tag_name": "python", "question_id": 5}, {"tag_name": "android", "question_id": 6}, {"tag_name": "jquery", "question_id": 7}, {"tag_name": "html", "question_id": 8}, {"tag_name": "c++", "question_id": 9}, {"tag_name": "ios", "question_id": 10}, {"tag_name": "css", "question_id": 11}, {"tag_name": "mysql", "question_id": 12}, {"tag_name": "sql", "question_id": 13}, {"tag_name": "asp.net", "question_id": 14}, {"tag_name": "c", "question_id": 15}, {"tag_name": "r", "question_id": 16}, {"tag_name": "ruby-on-rails", "question_id": 17}, {"tag_name": "arrays", "question_id": 18}, {"tag_name": "node.js", "question_id": 19}, {"tag_name": ".net", "question_id": 20}, {"tag_name": "objective-c", "question_id": 21}, {"tag_name": "json", "question_id": 22}, {"tag_name": "sql-server", "question_id": 23}, {"tag_name": "angularjs", "question_id": 24}, {"tag_name": "swift", "question_id": 25}, {"tag_name": "iphone", "question_id": 26}, {"tag_name": "regex", "question_id": 27}, {"tag_name": "django", "question_id": 28}, {"tag_name": "ruby", "question_id": 29}, {"tag_name": "excel", "question_id": 30}, {"tag_name": "ajax", "question_id": 31}, {"tag_name": "python-3.x", "question_id": 32}, {"tag_name": "angular", "question_id": 33}, {"tag_name": "xml", "question_id": 34}, {"tag_name": "asp.net-mvc", "question_id": 35}, {"tag_name": "linux", "question_id": 36}]
2 changes: 1 addition & 1 deletion data/tag.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"name": "javascript", "description": "JavaScript (not to be confused with Java) is a hig"}, {"name": "java", "description": "Java (not to be confused with JavaScript, JScript "}, {"name": "c#", "description": "a high level, statically typed, multi-paradigm pro"}, {"name": "php", "description": "a widely used, high-level, dynamic, object-oriente"}, {"name": "python", "description": "a multi-paradigm, dynamically typed, multipurpose "}, {"name": "android", "description": "Google's mobile operating system, used for program"}, {"name": "jquery", "description": "a Javascript library, consider also adding the Jav"}, {"name": "html", "description": "the standard markup language used for structuring "}, {"name": "c++", "description": "a general-purpose programming language. It was ori"}, {"name": "ios", "description": "the mobile operating system running on the Apple i"}, {"name": "css", "description": "a representation style sheet language used for des"}, {"name": "mysql", "description": "a free, open source Relational Database Management"}, {"name": "sql", "description": "a language for querying databases. Questions shoul"}, {"name": "asp.net", "description": "a Microsoft web application development framework "}, {"name": "c", "description": "a general-purpose programming language used for sy"}, {"name": "r", "description": "a free, open-source programming language and softw"}, {"name": "ruby-on-rails", "description": "an open source full-stack web application framewor"}, {"name": "arrays", "description": "an ordered data structure consisting of a collecti"}, {"name": "node.js", "description": "an event-based, non-blocking, asynchronous I/O run"}, {"name": ".net", "description": "Do NOT use for questions about .NET Core - use [.n"}, {"name": "objective-c", "description": "should be used only on questions that are about Ob"}, {"name": "json", "description": "a textual data interchange format and language-ind"}, {"name": "sql-server", "description": "a relational database management system (RDBMS). U"}, {"name": "angularjs", "description": "Use for questions about AngularJS (1.x), the open-"}, {"name": "swift", "description": "a general-purpose, open-source programming languag"}, {"name": "iphone", "description": "unless you are addressing Apple's iPhone and/or iP"}, {"name": "regex", "description": "Regular expressions provide a declarative language"}, {"name": "django", "description": "an open source server-side web application framewo"}, {"name": "ruby", "description": "a multi-platform open-source, dynamic object-orien"}, {"name": "excel", "description": "Only for questions on programming against Excel ob"}, {"name": "ajax", "description": "a technique for creating seamless interactive webs"}, {"name": "python-3.x", "description": "For questions about Python programming that are sp"}, {"name": "angular", "description": "Questions about Angular (not to be confused with A"}, {"name": "xml", "description": "a flexible, structured document format that define"}, {"name": "asp.net-mvc", "description": "an open source web application framework and tooli"}, {"name": "linux", "description": "LINUX QUESTIONS MUST BE PROGRAMMING RELATED.\r\n\r\nUs"}]
[{"name": "javascript", "description": "JavaScript (not to be confused with Java) is a hig"}, {"name": "java", "description": "Java (not to be confused with JavaScript, JScript "}, {"name": "c#", "description": "a high level, statically typed, multi-paradigm pro"}, {"name": "php", "description": "a widely used, high-level, dynamic, object-oriente"}, {"name": "python", "description": "a multi-paradigm, dynamically typed, multipurpose "}, {"name": "android", "description": "Google's mobile operating system, used for program"}, {"name": "jquery", "description": "a Javascript library, consider also adding the Jav"}, {"name": "html", "description": "the standard markup language used for structuring "}, {"name": "c++", "description": "a general-purpose programming language. It was ori"}, {"name": "ios", "description": "the mobile operating system running on the Apple i"}, {"name": "css", "description": "a representation style sheet language used for des"}, {"name": "mysql", "description": "a free, open source Relational Database Management"}, {"name": "sql", "description": "a language for querying databases. Questions shoul"}, {"name": "asp.net", "description": "a Microsoft web application development framework "}, {"name": "c", "description": "a general-purpose programming language used for sy"}, {"name": "r", "description": "a free, open-source programming language and softw"}, {"name": "ruby-on-rails", "description": "an open source full-stack web application framewor"}, {"name": "arrays", "description": "an ordered data structure consisting of a collecti"}, {"name": "node.js", "description": "an event-based, non-blocking, asynchronous I/O run"}, {"name": ".net", "description": "Do NOT use for questions about .NET Core - use [.n"}, {"name": "objective-c", "description": "should be used only on questions that are about Ob"}, {"name": "json", "description": "a textual data interchange format and language-ind"}, {"name": "sql-server", "description": "a relational database management system (RDBMS). U"}, {"name": "angularjs", "description": "Use for questions about AngularJS (1.x), the open-"}, {"name": "swift", "description": "a general-purpose, open-source programming languag"}, {"name": "iphone", "description": "unless you are addressing Apple's iPhone and/or iP"}, {"name": "regex", "description": "Regular expressions provide a declarative language"}, {"name": "django", "description": "an open source server-side web application framewo"}, {"name": "ruby", "description": "a multi-platform open-source, dynamic object-orien"}, {"name": "excel", "description": "Only for questions on programming against Excel ob"}, {"name": "ajax", "description": "a technique for creating seamless interactive webs"}, {"name": "python-3.x", "description": "For questions about Python programming that are sp"}, {"name": "angular", "description": "Questions about Angular (not to be confused with A"}, {"name": "xml", "description": "a flexible, structured document format that define"}, {"name": "asp.net-mvc", "description": "an open source web application framework and tooli"}, {"name": "linux", "description": "LINUX QUESTIONS MUST BE PROGRAMMING RELATED.\r\n\r\nUs"}]
1 change: 1 addition & 0 deletions migrations/03-Answer.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ exports.up = function(knex, Promise) {
table.foreign('user_id').references('_User.id').onDelete('CASCADE');
table.foreign('question_id').references('Question.id').onDelete('CASCADE');
table.boolean('isBest').defaultTo(false);
table.text('body').notNullable();
});
};

Expand Down
Loading

0 comments on commit 6336077

Please sign in to comment.