DjangoHub is a social network for discussing web technologies,
with both backend and frontend built using Django.
✔️ Register and log in users
✔️ Authentication and restricted routes
✔️ Edit your profile
✔️ CRUD with your own chat room
✔️ CRUD with your own messages
✔️ Chat room with real-time messages and participants
✔️ Filter chat rooms by text input
✔️ Browse topics with room count
✔️ Recent activities with sorted comments
✔️ Flash messages, responsive design, accessibility and SEO.
These are the instructions to set up and run the Django project in your local environment.
-
Python: Make sure you have Python 3.6 or higher installed. You can download it from python.org.
-
Pip: Ensure that
pip
is installed. It usually comes pre-installed with Python. -
Virtualenv: It is recommended to use a virtual environment to manage the project dependencies. You can install it with the following command:
pip install virtualenv
Clone the repository to your local machine using the following command:
git clone https://github.com/KevinVanDerSchans/social-media-django.git
Navigate to the project folder and create a virtual environment:
cd social-media-django
virtualenv env
Activate the virtual environment:
• On Windows:
.\env\Scripts\activate
• On macOS and Linux:
source env/bin/activate
Install the project dependencies using the requirements.txt file:
pip install -r requirements.txt
Apply the migrations to set up the database:
python manage.py migrate
Create a superuser to access the Django admin:
python manage.py createsuperuser
Make sure to create a .env file in the project root for the necessary environment variables.
Run the development server to verify everything is working correctly:
python manage.py runserver
Open your browser and navigate to http://127.0.0.1:8000/ to see the application running.
If you want to contribute to this project, follow these steps:
-
Perform a fork to the repository.
-
Create a branch for your feature or bugfix:
git checkout -b feature/your-feature-name
-
Make the necessary changes and commits:
git commit -m 'Add some feature'
-
Push to branch:
git push origin feature/your-feature-name
-
Send a pull request to the original repository.
Kevin Schans |
---|