Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
15 changed files
with
410 additions
and
651 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
[ | ||
{ | ||
"Singer_Name": "John", | ||
|
||
"Track":"BlackOut" | ||
}, | ||
{ | ||
"Singer_Name": "Justin-Bieber", | ||
"Description":"It was launched in 2002. At that Justin bieber age was 12 years.", | ||
"Track":"Baby" | ||
}, | ||
{ | ||
"Singer_Name": "ChainSmoker", | ||
"Track":"Loser" | ||
}, | ||
{ | ||
"Singer_Name": "JohnCena", | ||
|
||
"Track":"You-can-see-me" | ||
}, | ||
{ | ||
"Singer_Name": "Akon", | ||
|
||
"Track":"Chammak-Challo" | ||
}, | ||
{ | ||
"Singer_Name": "A.R-Rehman", | ||
"Track":"Oscar" | ||
}, | ||
{ | ||
"Singer_Name": "Pritam", | ||
|
||
"Track":"Black" | ||
}, | ||
{ | ||
"Singer_Name": "AlanWalker", | ||
|
||
"Track":"Fade" | ||
}, | ||
{ | ||
"Singer_Name": "EDSheeran", | ||
"Track":"We-dont-talk-anymore" | ||
} | ||
|
||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
|
||
const bcrypt = require('bcrypt-promise') | ||
const sqlite = require('sqlite-async') | ||
|
||
const saltRounds = 10 | ||
|
||
module.exports = class List { | ||
|
||
constructor(dbName = ':memory:') { | ||
return (async() => { | ||
this.db = await sqlite.open(dbName) | ||
/*we need this table to store the user track | ||
const sql = 'CREATE TABLE IF NOT EXISTS uploadTrack\ | ||
(id INTEGER PRIMARY KEY AUTOINCREMENT, user TEXT, pass TEXT, email TEXT);' | ||
await this.db.run(sql)*/ | ||
return this | ||
console.log("Track open") | ||
})() | ||
} | ||
|
||
/** | ||
* checks to see if a set of login credentials are valid | ||
* @param {String} username the username to check | ||
* @param {String} password the password to check | ||
* @returns {Boolean} returns true if credentials are valid | ||
*/ | ||
async getAll() { | ||
|
||
|
||
} | ||
|
||
async tearDown() { | ||
await this.db.close() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.