RoachGram is a social media platform where users can share their thoughts and posts and whatever they like also can interact with each other.
-
/notifications/(username)/ always connected to this for receiving realtime notifications and send request to add notification in these actions -) ["follow" , "like" , "comment" , "bookmark"]. data needed for this route is =) type: on of previous listed request, user_to_notif: user we want to send notification to, triggered_by: user who performed action
-
RoachGram is live on: https://amiraliashoori6.pythonanywhere.com/
-
Be aware that I didn't spend much time on UI of this project.
-
main purpose of this project is to improve my skills and learn new things as a junior programmer.
-
the authentication of this project is JWT based.
-
when using API if user is not logged in gets latest 15 posts and if they are logged in get posts of their followers and suggest some posts to them (for detecting if a post is suggested or not, you should check if the user is following the author of post)
-
this website is hosted for free on pythonanywhere.
-
beacuse the website is free hosted it's a little slow
-
the media that users upload will be stored on server not on a cloud platform (because of some limitations) and only image types accepted because of that.
-
django channels (web socket) implemented but the free plan won't support it. so you can not use the chat section on live version but in local it will work.
-
API uses cursor pagination when fetching large data for improving response time.