Showing
5 changed files
with
16 additions
and
6 deletions
... | @@ -12,6 +12,8 @@ const crypto=require('crypto'); | ... | @@ -12,6 +12,8 @@ const crypto=require('crypto'); |
12 | const queryEncode=require('querystring').encode; | 12 | const queryEncode=require('querystring').encode; |
13 | 13 | ||
14 | 14 | ||
15 | +console.log("test"); | ||
16 | + | ||
15 | const request = require('request') | 17 | const request = require('request') |
16 | const {v4} = require("uuid") | 18 | const {v4} = require("uuid") |
17 | const sign = require('jsonwebtoken').sign | 19 | const sign = require('jsonwebtoken').sign | ... | ... |
... | @@ -8,6 +8,10 @@ const coinSchema=mongoose.Schema({ | ... | @@ -8,6 +8,10 @@ const coinSchema=mongoose.Schema({ |
8 | type:String, | 8 | type:String, |
9 | required:true | 9 | required:true |
10 | }, | 10 | }, |
11 | + korean_name:{ | ||
12 | + type:String, | ||
13 | + required:true | ||
14 | + }, | ||
11 | acc_trade_price_24h:{ | 15 | acc_trade_price_24h:{ |
12 | type:Number, | 16 | type:Number, |
13 | required:true | 17 | required:true |
... | @@ -16,9 +20,6 @@ const coinSchema=mongoose.Schema({ | ... | @@ -16,9 +20,6 @@ const coinSchema=mongoose.Schema({ |
16 | type:Number, | 20 | type:Number, |
17 | required:true | 21 | required:true |
18 | }, | 22 | }, |
19 | - five_candle:{ | ||
20 | - type:Number | ||
21 | - }, | ||
22 | count:{ | 23 | count:{ |
23 | type:Number, | 24 | type:Number, |
24 | default:0 | 25 | default:0 | ... | ... |
... | @@ -16,4 +16,4 @@ const userSchema=mongoose.Schema({ | ... | @@ -16,4 +16,4 @@ const userSchema=mongoose.Schema({ |
16 | }) | 16 | }) |
17 | 17 | ||
18 | const User=mongoose.model("User",userSchema); | 18 | const User=mongoose.model("User",userSchema); |
19 | -module.exports={User}; | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
19 | +module.exports={User}; | ... | ... |
This diff is collapsed. Click to expand it.
... | @@ -5,7 +5,7 @@ | ... | @@ -5,7 +5,7 @@ |
5 | "main": "index.js", | 5 | "main": "index.js", |
6 | "scripts": { | 6 | "scripts": { |
7 | "test": "echo \"Error: no test specified\" && exit 1", | 7 | "test": "echo \"Error: no test specified\" && exit 1", |
8 | - "start":"node index.js" | 8 | + "start": "node index.js" |
9 | }, | 9 | }, |
10 | "repository": { | 10 | "repository": { |
11 | "type": "git", | 11 | "type": "git", |
... | @@ -14,9 +14,16 @@ | ... | @@ -14,9 +14,16 @@ |
14 | "author": "", | 14 | "author": "", |
15 | "license": "ISC", | 15 | "license": "ISC", |
16 | "dependencies": { | 16 | "dependencies": { |
17 | + "crypto": "^1.0.1", | ||
18 | + "dotenv": "^10.0.0", | ||
17 | "express": "^4.17.1", | 19 | "express": "^4.17.1", |
20 | + "jsonwebtoken": "^8.5.1", | ||
18 | "mongoose": "^6.0.12", | 21 | "mongoose": "^6.0.12", |
19 | - "node-fetch": "^3.0.0" | 22 | + "node-fetch": "^3.0.0", |
23 | + "querystring": "^0.2.1", | ||
24 | + "request": "^2.88.2", | ||
25 | + "requests": "^0.3.0", | ||
26 | + "uuid": "^8.3.2" | ||
20 | }, | 27 | }, |
21 | "devDependencies": { | 28 | "devDependencies": { |
22 | "nodemon": "^2.0.14" | 29 | "nodemon": "^2.0.14" | ... | ... |
-
Please register or login to post a comment