Welcome to the ychat.dev Django project! This is a simple chat application where users can create accounts, log in, and engage in real-time conversations. To get started, follow the installation and run guide below.
Before running the project, ensure that you have Python and Django installed on your system. If not, you can download and install Python from python.org and Django using pip:
pip install Django
-
Clone the Repository:
Clone this repository to your local machine using Git:
git clone https://github.com/CutyCat2000/ychat.dev.git
-
Navigate to the Project Directory:
Change your current working directory to the project folder:
cd ychat.dev
-
Create a Virtual Environment (Optional but recommended):
It's a good practice to create a virtual environment for your project to isolate dependencies. You can create a virtual environment using
venv
(Python 3.3+):python -m venv venv
-
Activate the Virtual Environment (Optional but recommended):
On Windows:
venv\Scripts\activate
On macOS and Linux:
source venv/bin/activate
-
Install Dependencies:
Install the project dependencies using pip:
pip install -r requirements.txt
-
Database Migration:
Run database migrations to set up the database schema:
python manage.py migrate
-
Create a Superuser:
To create an admin superuser account, run the following command and follow the prompts:
python manage.py createsuperuser
-
Run the Development Server:
Start the development server by running:
python manage.py runserver
The development server will be available at
http://127.0.0.1:8000/
by default.
-
Access the Admin Panel:
You can access the Django admin panel at
http://127.0.0.1:8000/admin/
and log in with the superuser credentials you created earlier. Here, you can manage users, chat rooms, and other application data. -
Access the Chat Application:
The chat application can be accessed at
http://127.0.0.1:8000/
. Users can register, log in, create chat rooms, and participate in real-time conversations.
You can customize the project further by modifying the Django settings, adding new features, or changing the frontend templates. Refer to the Django documentation for more information on customization: Django Documentation
If you'd like to contribute to the project, feel free to submit pull requests or open issues on the GitHub repository.
This project is licensed under the MPL License - see the LICENSE file for details.
If you have any questions or need further assistance, please contact [email protected].
Enjoy using ychat.dev!