Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Crypto
/
Crypto-auto-trading
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
June
2021-11-24 12:07:54 +0900
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
719738f27a794d7ddcf072d5c742c8bd787fd566
719738f2
2 parents
e9d29d70
f050c5a2
merge test
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
6 deletions
index.js
models/Coin.js
models/User.js
package-lock.json
package.json
index.js
View file @
719738f
...
...
@@ -12,6 +12,8 @@ const crypto=require('crypto');
const
queryEncode
=
require
(
'querystring'
).
encode
;
console
.
log
(
"test"
);
const
request
=
require
(
'request'
)
const
{
v4
}
=
require
(
"uuid"
)
const
sign
=
require
(
'jsonwebtoken'
).
sign
...
...
models/Coin.js
View file @
719738f
...
...
@@ -8,6 +8,10 @@ const coinSchema=mongoose.Schema({
type
:
String
,
required
:
true
},
korean_name
:{
type
:
String
,
required
:
true
},
acc_trade_price_24h
:{
type
:
Number
,
required
:
true
...
...
@@ -16,9 +20,6 @@ const coinSchema=mongoose.Schema({
type
:
Number
,
required
:
true
},
five_candle
:{
type
:
Number
},
count
:{
type
:
Number
,
default
:
0
...
...
models/User.js
View file @
719738f
...
...
@@ -16,4 +16,4 @@ const userSchema=mongoose.Schema({
})
const
User
=
mongoose
.
model
(
"User"
,
userSchema
);
module
.
exports
=
{
User
};
\ No newline at end of file
module
.
exports
=
{
User
};
...
...
package-lock.json
View file @
719738f
This diff is collapsed. Click to expand it.
package.json
View file @
719738f
...
...
@@ -5,7 +5,7 @@
"main"
:
"index.js"
,
"scripts"
:
{
"test"
:
"echo
\"
Error: no test specified
\"
&& exit 1"
,
"start"
:
"node index.js"
"start"
:
"node index.js"
},
"repository"
:
{
"type"
:
"git"
,
...
...
@@ -14,9 +14,16 @@
"author"
:
""
,
"license"
:
"ISC"
,
"dependencies"
:
{
"crypto"
:
"^1.0.1"
,
"dotenv"
:
"^10.0.0"
,
"express"
:
"^4.17.1"
,
"jsonwebtoken"
:
"^8.5.1"
,
"mongoose"
:
"^6.0.12"
,
"node-fetch"
:
"^3.0.0"
"node-fetch"
:
"^3.0.0"
,
"querystring"
:
"^0.2.1"
,
"request"
:
"^2.88.2"
,
"requests"
:
"^0.3.0"
,
"uuid"
:
"^8.3.2"
},
"devDependencies"
:
{
"nodemon"
:
"^2.0.14"
...
...
Please
register
or
login
to post a comment