Skip to content

Commit ce5734b

Browse files
Batli JoselevitzBatli Joselevitz
Batli Joselevitz
authored and
Batli Joselevitz
committed
created homepage wirefram and start test 1
1 parent fbd0ff6 commit ce5734b

File tree

8 files changed

+76
-6
lines changed

8 files changed

+76
-6
lines changed

config/config.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"development": {
33
"username": "root",
4-
"password": "MyNewPass",
4+
"password": "santal33!",
55
"database": "crypto_db",
66
"host": "127.0.0.1",
77
"dialect": "mysql"
@@ -20,4 +20,4 @@
2020
"host": "127.0.0.1",
2121
"dialect": "mysql"
2222
}
23-
}
23+
}

config/connection.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if (process.env.JAWSDB_URL) {
99
connection = mysql.createConnection({
1010
host: 'localhost',
1111
user: 'root',
12-
password: '!!!!!INSERT!!!!!',
12+
password: 'santal33!',
1313
database: 'crypto_db'
1414
})
1515
}
@@ -23,4 +23,4 @@ connection.connect(function (err) {
2323
return;
2424
});
2525
// export connection
26-
module.exports = connection;
26+
module.exports = connection;

package-lock.json

+53
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
"sequelize": "^4.31.2",
1414
"sequelize-cli": "^3.2.0"
1515
},
16-
"devDependencies": {},
16+
"devDependencies": {
17+
"chai": "^4.1.2"
18+
},
1719
"scripts": {
1820
"test": "echo \"Error: no test specified\" && exit 1",
1921
"start": "node server.js"

public/test/apiTest/test-server.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
var chai = require('chai');
2+
var server = require('../public/test/apiTest');
3+
var should = chai.should();
4+
5+
describe('data', function(){
6+
it('should list ALL coins on /coins GET');
7+
it('should list a SINGLE coin on /blob/<id> GET');
8+
it('should add a SINGLE coin on /blobs POST');
9+
it('should update a SINGLE coin on /blob/<id> PUT');
10+
it('should delete a SINGLE coin on /blob/<id> DELETE');
11+
});
File renamed without changes.

routes/html-routes.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,8 @@ module.exports = function(app) {
2121
app.get("/registration", function(req, res) {
2222
res.render("registration");
2323
})
24-
};
24+
// route for actual API TEST
25+
app.get("/apiTest", function(req, res) {
26+
res.sendFile(path.join(__dirname, "/../public/test/test-server.js"));
27+
})
28+
};
94.6 KB
Loading

0 commit comments

Comments
 (0)