A Reddit-like web application built with Django, offering users the ability to create posts, comments, and interact within different subreddits.
🔗 ERD
🎨 UI/UX
- Clone the repository
git clone https://github.com/Kuugang/redditclone-django.git
cd redditclone-django
- Create virtual environment
python -m venv venv
source venv/bin/activate # On Windows, use `venv\Scripts\activate`
- Install dependencies
pip install -r requirements.txt
- Create .env file
touch .env
- Configure environment variables in
.env
DATABASE_HOST = 'YOUR DATABASE HOST'
DATABASE_NAME = 'YOUR DATABASE NAME'
DATABASE_PORT = 'YOUR DATABASE PORT'
DATABASE_USER = 'YOUR DATABASE USER'
DATABASE_PASSWORD = 'YOUR DATABASE PASSWORD'
GOOGLE_OAUTH_CLIENT_ID= 'YOUR GOOGLE WEB APP OAUTH CLIENT ID'
EMAIL_HOST_USER = 'YOUR EMAIL HOST USER'
EMAIL_HOST_PASSWORD = 'YOUR EMAIL HOST PASSWORD'
- Run migrations and seeding
python manage.py migrate
python manage.py populate_topics
- Collect static files
python manage.py collectstatic
- Start the development server
python manage.py runserver
- Never commit
.env
file to version control - Use a
.gitignore
file to exclude sensitive credentials - Rotate credentials periodically
-
Fork the repository
-
Create your feature branch (
git checkout -b feature/AmazingFeature
) -
Commit your changes (
git commit -m 'Add some AmazingFeature'
) -
Push to the branch (
git push origin feature/AmazingFeature
) -
Open a Pull Request
-
Django
-
Tailwind CSS
-
Flowbite