DEV Community

Cover image for Build a fullstack twitter clone using Flask and React | PART 1

Build a fullstack twitter clone using Flask and React | PART 1

arnu515 on June 11, 2020

Hello, community! It's my first post here, and in this post, I want to show you how you can make a simple fullstack twitter clone using React and F...
Collapse
 
benayat profile image
benayat

great article, thanks!
one note - with axios, there is no need to insert the entire url with localhost - just the endpoint would be enough. this way it can stay the same for dev and deployment.
just add a proxy to package.json

Collapse
 
otto_livingston profile image
No 680621498 • Edited

I keep receiving
{
"error": "Invalid Form"
}

After running this to the terminal

curl -X POST -H "Content-Type: application/json" -d '{"email": "foo@bar.dev", "pwd": "foobar", "username": "foobar"}' "localhost:5000/api/register"

I need help here

Collapse
 
arnu515 profile image
arnu515

Hmm, sorry for the late reply, but I think that email is already registered. Try changing each of the errors to something meaningful, so that you can understand what's going on

Collapse
 
otto_livingston profile image
No 680621498

Thanks for this piece

Collapse
 
arnu515 profile image
arnu515

Your welcome!

Collapse
 
fatheyabdelslam profile image
Fathey

nice Article,
i can't wait part two

Collapse
 
arnu515 profile image
arnu515 • Edited

Thanks! I'm working on it right now.

UPDATE: It is out dev.to/arnu515/build-a-twitter-clo...

Collapse
 
emilie profile image
Emilie

hey you mustn't manipulate DOM directly on react :-)
But considering you are only 14 years old. I am so impressed by your skillsets!

Collapse
 
arnu515 profile image
arnu515

Thanks! I will keep it in mind!

Also I'm 15 now :)

Collapse
 
kgprajwal profile image
Prajwal

Very nice!

Collapse
 
arnu515 profile image
arnu515

Thanks!

Collapse
 
arnu515 profile image
arnu515

Part two is now out! Check it out here