Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .gitignore

This file was deleted.

3 changes: 3 additions & 0 deletions db/knex.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
var environment = process.env.NODE_ENV || 'development';
var config = require('..knexfile.js')[enviroment];
module.exports = require('knex')(config);
25 changes: 25 additions & 0 deletions db/migrations/20200215115622_Descriptions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

exports.up = async function(knex, Promise) {
await knex.schema.createTable("productDescription", table => {
table
.increments("id")
.unsigned()
.primary();
table
.string("Title")
.unique()
.notNullable();
table
.string("Description")
.notNullable();
table
.integer("Price")
.unique()
.notNullable();
})

};

exports.down = async function(knex, Promise) {
await knex.schema.dropTable("productDescription");
};
11 changes: 0 additions & 11 deletions docker.aws.json

This file was deleted.

20 changes: 0 additions & 20 deletions dockerfile

This file was deleted.

128 changes: 0 additions & 128 deletions index.html

This file was deleted.

14 changes: 14 additions & 0 deletions knexfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const path = require('path')

module.exports = {
development: {
client: "postgresql",
connection: 'postgres://postgres:password@localhost:5432/SDC',
migrations: {
directory: __dirname + '/db/migrations',
},
seeds: {
directory: __dirname + '/db/seeds',
},
},
};
1 change: 1 addition & 0 deletions node_modules/.bin/atob

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/knex

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/mkdirp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion node_modules/.bin/node

This file was deleted.

1 change: 1 addition & 0 deletions node_modules/.bin/semver

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/uuid

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/which

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node_modules/accepts/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions node_modules/arr-diff/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

130 changes: 130 additions & 0 deletions node_modules/arr-diff/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading