This is reddit clone backend. It is like reddit where users can join communities, create posts, and vote/comment on posts. They can also chat with other community members in real-time. This API will be consumed by flutter app.
Technology used:
- Django
- Django Rest Framework
- Django Channels
- Redis
- PostgreSQL
- JWT Authentication + Google Authentication
- Real-time chat
- Create communities/posts/comments
- Upvote/downvote posts/comments
- Get random username & profile pictures
- Post ranking algorithm
-
Fork the repo
-
Clone the repo:
$ git clone
-
Create a virtual environment:
$ python3 -m venv env
-
Activate the virtual environment:
$ source env/bin/activate
-
Install the dependencies:
$ pip install -r requirements.txt
-
Create a .env file and using .env.example as a reference.
-
Make migrations:
$ python manage.py makemigrations
-
Migrate:
$ python manage.py migrate
-
Run the server:
$ python manage.py runserver
- Add more tests
- Handle image from microservice.
Coming soon...
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.