Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
22_23-J 16
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
22_23-J 16
22_23-J 16
Commits
8c44ee8b
Commit
8c44ee8b
authored
Jan 16, 2023
by
Ishini Kiridena
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PDF creation completed - nft endpoint
parent
61032c9c
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1310 additions
and
20 deletions
+1310
-20
ExpressBackend/package-lock.json
ExpressBackend/package-lock.json
+1010
-20
ExpressBackend/package.json
ExpressBackend/package.json
+2
-0
ExpressBackend/route/patient-routes/mental-state-router.js
ExpressBackend/route/patient-routes/mental-state-router.js
+1
-0
ExpressBackend/route/patient-routes/nft-route.js
ExpressBackend/route/patient-routes/nft-route.js
+294
-0
ExpressBackend/server.js
ExpressBackend/server.js
+3
-0
No files found.
ExpressBackend/package-lock.json
View file @
8c44ee8b
This diff is collapsed.
Click to expand it.
ExpressBackend/package.json
View file @
8c44ee8b
...
...
@@ -14,10 +14,12 @@
"author"
:
"22_23-J 16"
,
"license"
:
"ISC"
,
"dependencies"
:
{
"axios"
:
"^1.2.2"
,
"cors"
:
"^2.8.5"
,
"crypto-js"
:
"^4.1.1"
,
"express"
:
"^4.18.2"
,
"mongoose"
:
"^6.8.0"
,
"node-htmlpdf"
:
"^1.0.4"
,
"stellar-sdk"
:
"^10.4.1"
},
"devDependencies"
:
{
...
...
ExpressBackend/route/patient-routes/mental-state-router.js
View file @
8c44ee8b
...
...
@@ -70,6 +70,7 @@ router.post("/", async (req, res) => {
//send the transaction to blockchain
try
{
const
transactionResult
=
await
server
.
submitTransaction
(
transaction
);
server
.
transactions
;
console
.
log
(
"
Mental state transaction sent to blockchain : HASH :
"
+
transactionResult
.
hash
...
...
ExpressBackend/route/patient-routes/nft-route.js
0 → 100644
View file @
8c44ee8b
This diff is collapsed.
Click to expand it.
ExpressBackend/server.js
View file @
8c44ee8b
...
...
@@ -29,6 +29,9 @@ app.use("/patient/mentalstate", patientMentalState);
const
patientRequest
=
require
(
"
./route/patient-routes/patient-requests
"
);
app
.
use
(
"
/patient/request
"
,
patientRequest
);
const
patientNft
=
require
(
"
./route/patient-routes/nft-route
"
);
app
.
use
(
"
/patient/createnft
"
,
patientNft
);
//practitioner routes
const
practitionerRegister
=
require
(
"
./route/practitioner-routes/registration-route
"
);
app
.
use
(
"
/practitioner/register
"
,
practitionerRegister
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment