Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ankitjaadoo/social-networking-app-django
Social Media App Built using Python and Django Web Framework.
https://github.com/ankitjaadoo/social-networking-app-django
Last synced: 17 days ago
JSON representation
Social Media App Built using Python and Django Web Framework.
- Host: GitHub
- URL: https://github.com/ankitjaadoo/social-networking-app-django
- Owner: ankitjaadoo
- License: mit
- Created: 2022-06-19T14:22:04.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-19T22:30:24.000Z (over 2 years ago)
- Last Synced: 2024-11-05T12:12:43.647Z (2 months ago)
- Language: Python
- Size: 21.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
** Introduction **
This Project is all about building a Backend API for a Social Network site using Django REST Framework
** Project Setup **
- Clone the repository
- move inside the cloned project folder, e.g. social-networking-app-django in this case
- Create the Virtual environment in Python using the following command - python -m venv e.g. python -m venv .env
- change directory to \Scripts and enter activate to activate the virtual environment.
- Run the command pip install -r requirements.txt to install all the necessary dependencies/libraries for running this application.
- Finally, to run the application, run the command python SocialNetwork/manage.py runserver
- Test cases can be run by the following command: python SocialNetwork/manage.py test** Functionalities **
- User Sign Up
- User Log In
- Create a Post
- Delete a Post
- Comment on a Post
- Like a Post
- Search for Post(s) using Hashtag(s)
- View all posts by a user** API Endpoints **
1. User Sign Up - http://127.0.0.1:8000/signup?username=&password=
2. User Log In - http://127.0.0.1:8000/login?username=&password=
3. Create a Post - http://127.0.0.1:8000/post/create?username=&post_text=
4. Delete a Post - http://127.0.0.1:8000/post/1/delete?username=
5. Comment on a Post - http://127.0.0.1:8000/post/10/comment?username=&comment_text=
6. Like a Post - http://127.0.0.1:8000/post/1/like?username=
7. Search for Post(s) using Hashtag(s) - http://127.0.0.1:8000/post/search?username=&hashtag=
8. View all posts by a user - http://127.0.0.1:8000/post?username=