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

Webdb-iii-Challenge #361

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
Prev Previous commit
Next Next commit
Add dependencies
  • Loading branch information
Kseniyapl committed Mar 19, 2019
commit e9b7bb3b0e8ef86050699f4e76c8f8bb2f1e0194
Empty file added index.js
Empty file.
44 changes: 44 additions & 0 deletions knexfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// Update with your config settings.

module.exports = {

development: {
client: 'sqlite3',
connection: {
filename: './dev.sqlite3'
}
},

staging: {
client: 'postgresql',
connection: {
database: 'my_db',
user: 'username',
password: 'password'
},
pool: {
min: 2,
max: 10
},
migrations: {
tableName: 'knex_migrations'
}
},

production: {
client: 'postgresql',
connection: {
database: 'my_db',
user: 'username',
password: 'password'
},
pool: {
min: 2,
max: 10
},
migrations: {
tableName: 'knex_migrations'
}
}

};
29 changes: 29 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "webdb-iii-challenge",
"version": "1.0.0",
"description": "- Databases\r - Relational Databases\r - Knex migrations.\r - Seeding data.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Kseniyapl/webdb-iii-challenge.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/Kseniyapl/webdb-iii-challenge/issues"
},
"homepage": "https://github.com/Kseniyapl/webdb-iii-challenge#readme",
"dependencies": {
"express": "^4.16.4",
"helmet": "^3.16.0",
"knex": "^0.16.3",
"sqlite3": "^4.0.6"
},
"devDependencies": {
"nodemon": "^1.18.10"
}
}
Loading