manikandanraji / twitter-clone-frontend Goto Github PK
View Code? Open in Web Editor NEWTwitter Clone Frontend
Twitter Clone Frontend
Can you please make a verified featured? I think this will be epic.
# Nav || src/components/layout/Nav.js:134
### TypeError: Cannot read property 'handle' of null
133 | <li>
> 134 | <NavLink activeClassName="selected" to={`/${user.handle}`}>
| ^ 135 | <ProfileIcon /> <span>Profile</span>
136 | </NavLink>
137 | </li>
---
# NewTweet || src/components/Tweet/NewTweet.js:99
### TypeError: Cannot read property 'avatar' of null
96 |
97 | return (
98 | <Wrapper>
> 99 | <Avatar src={user.avatar} alt="avatar" />
| ^ 100 | <form onSubmit={handleNewTweet}>
101 | <div className="new-tweet">
102 | <TextareaAutosize
So this is probably a stupid question, but I'm trying to deploy this application so I can use it and make some changes. I've deployed my backend to Heroku by following the instructions in the backend repo. I've deployed my frontend to Vercel (formerly ZEIT Now). How do I link the two? Is that what the endpoint env vars are for? The Heroku URL just shows the GraphQL IDE, which I assume is correct.
Thanks in advance,
@gideon357
I can delete anybody tweet by just
Running this query
{"operationName":"deleteTweet","variables":{"id":"ckbrtcx4k003i0789q712lg0e"},"query":"mutation deleteTweet($id: ID!) {\n deleteTweet(id: $id) {\n id\n __typename\n }\n}\n"}
Change this id payload to any tweet
git clone https://github.com/manikandanraji/twitter-clone-frontend.git
cd twitter-clone-frontend
$ vim .env
REACT_APP_DEV=localhost:3000
REACT_APP_PROD=http://mydomain.com
REACT_APP_CLOUDINARY_URL=https://api.cloudinary.com/v1_1/<YOUR_CLOUD_NAME>/image/upload
sudo npm install
sudo npm start
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.