Skip to content

Commit 8fcaf3d

Browse files
committed
merge request for the fixes
1 parent 0c301f0 commit 8fcaf3d

32 files changed

+915
-1127
lines changed

identeefi-backend-node/.env

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +0,0 @@
1-
PINATA_API_KEY=6496b48ded8cfc6ac856
2-
PINATA_SECRET_API_KEY=d67fb3594ed31872186bd80d3dd8d17cb1fa4e9373d299eb34fcfcd9463717c7

identeefi-backend-node/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.env

identeefi-backend-node/postgres.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,14 @@ app.get('/profileAll', async (req, res)=>{
153153
app.get('/profile/:username', async (req, res)=>{
154154
const {username} = req.params;
155155
const data = await client.query(`SELECT * FROM profile WHERE username = '${username}'`);
156+
console.log("data",data)
156157
res.send(data.rows);
157158
console.log("Data sent successfully4");
158159
});
159160

160161
app.post('/addprofile', (req, res)=>{
161162
const {username, name, description, website, location, image, role} = req.body;
163+
console.log("image",image);
162164
createProfile(username, name, description, website, location, image, role);
163165
res.send('Data inserted');
164166

@@ -201,12 +203,15 @@ app.post('/upload/product', (req, res)=>{
201203
app.get('/file/profile/:fileName', function (req, res) {
202204
const {fileName} = req.params;
203205
const filePath = path.join(__dirname, 'public/uploads/profile', fileName);
206+
console.log('Serving file from:', filePath);
204207
res.sendFile(filePath);
205208
});
206209

207210
app.get('/file/product/:fileName', function (req, res) {
208211
const {fileName} = req.params;
209212
const filePath = path.join(__dirname, 'public/uploads/product', fileName);
213+
console.log('Serving file from:', filePath);
214+
210215
res.sendFile(filePath);
211216
});
212217

172 KB
Loading
179 KB
Loading
24.2 KB
Loading
61.9 KB
Loading

identeefi-frontend-react/.env

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
PINATA_API_KEY=6496b48ded8cfc6ac856
2-
PINATA_SECRET_API_KEY=d67fb3594ed31872186bd80d3dd8d17cb1fa4e9373d299eb34fcfcd9463717c7
3-
PRIVATE_KEY =0adbcc5245c7d9689f1b392b874b4e5dae80286886ce2bfbcbf722f6814a43db
1+
PRIVATE_KEY =
42
NODE_PATH=./src

identeefi-frontend-react/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
# production
1212
/build
1313

14+
*.env
15+
1416
# misc
1517
.DS_Store
1618
.env.local

0 commit comments

Comments
 (0)