Skip to content
Snippets Groups Projects
Commit 09a6f172 authored by Ludvig Damberg's avatar Ludvig Damberg
Browse files

fixes for presentation

register working
log in working
posting working
tokens last 10 seconds
parent ba65a2fd
No related branches found
No related tags found
No related merge requests found
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 JWT_SECRET=TESTKEYFORTOKEN123
SALT=10 SALT=10
NODE_ENV=development NODE_ENV=development
\ No newline at end of file
a0mOaDs7yrpTNcoL
\ No newline at end of file
backend/public/uploads/e0377313-994e-408e-a626-9d7733856418_.jpg

132 KiB

...@@ -23,7 +23,7 @@ const Post = () => { ...@@ -23,7 +23,7 @@ const Post = () => {
formData.append('recipe',recipe) formData.append('recipe',recipe)
formData.append('photo',imageData) formData.append('photo',imageData)
axios.post("http://localhost:5000/save", axios.post("http://localhost:5000/post",
formData formData
) )
...@@ -43,7 +43,7 @@ const Post = () => { ...@@ -43,7 +43,7 @@ const Post = () => {
<div className={styles.post_container}> <div className={styles.post_container}>
<h1>Make your drink!</h1> <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'/> <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"/> <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}> <div className={styles.addpicture}>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment