Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TDDD27_2023_Social media application
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ludvig Damberg
TDDD27_2023_Social media application
Commits
09a6f172
Commit
09a6f172
authored
1 year ago
by
Ludvig Damberg
Browse files
Options
Downloads
Patches
Plain Diff
fixes for presentation
register working log in working posting working tokens last 10 seconds
parent
ba65a2fd
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
backend/.env
+9
-2
9 additions, 2 deletions
backend/.env
backend/public/uploads/e0377313-994e-408e-a626-9d7733856418_.jpg
+0
-0
0 additions, 0 deletions
.../public/uploads/e0377313-994e-408e-a626-9d7733856418_.jpg
frontend/src/components/Post.js
+2
-2
2 additions, 2 deletions
frontend/src/components/Post.js
with
11 additions
and
4 deletions
backend/.env
+
9
−
2
View file @
09a6f172
MONGODB_URI=mongodb+srv://hillert:rmvpwZp63axO3evc@uploadscluster.delrqyf.mongodb.net/?retryWrites=true&w=majority
MONGODB_URI=mongodb+srv://TDDD27:a0mOaDs7yrpTNcoL@uploadscluster.delrqyf.mongodb.net/?retryWrites=true&w=majority
JWT_SECRET=TESTKEYFORTOKEN123
SALT=10
NODE_ENV=development
\ No newline at end of file
NODE_ENV=development
a0mOaDs7yrpTNcoL
\ No newline at end of file
This diff is collapsed.
Click to expand it.
backend/public/uploads/e0377313-994e-408e-a626-9d7733856418_.jpg
0 → 100644
+
0
−
0
View file @
09a6f172
132 KiB
This diff is collapsed.
Click to expand it.
frontend/src/components/Post.js
+
2
−
2
View file @
09a6f172
...
...
@@ -23,7 +23,7 @@ const Post = () => {
formData
.
append
(
'
recipe
'
,
recipe
)
formData
.
append
(
'
photo
'
,
imageData
)
axios
.
post
(
"
http://localhost:5000/
save
"
,
axios
.
post
(
"
http://localhost:5000/
post
"
,
formData
)
...
...
@@ -43,7 +43,7 @@ const Post = () => {
<
div
className
=
{
styles
.
post_container
}
>
<
h1
>
Make
your
drink
!<
/h1
>
<
input
className
=
{
styles
.
post_input1
}
value
=
{
name
}
onChange
=
{(
e
)
=>
setName
(
e
.
target
.
value
)}
placeholder
=
'
Title of your drink
'
type
=
'
text
'
/>
<
textarea
className
=
{
styles
.
post_input2
}
value
=
{
recipe
}
onChange
=
{(
e
)
=>
setRecipe
(
e
.
target
.
value
)}
placeholder
=
'
Recipe
:
'
type
=
'
text
'
/>
<
textarea
className
=
{
styles
.
post_input2
}
value
=
{
recipe
}
onChange
=
{(
e
)
=>
setRecipe
(
e
.
target
.
value
)}
placeholder
=
'
Recipe
'
type
=
'
text
'
/>
<
textarea
className
=
{
styles
.
post_input2
}
value
=
{
description
}
onChange
=
{(
e
)
=>
setDescription
(
e
.
target
.
value
)}
placeholder
=
'
How to make it...
'
type
=
'
text
'
cols
=
'
40
'
rows
=
"
5
"
/>
<
div
className
=
{
styles
.
addpicture
}
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment