ChirpNet is a basic working model of Twitter, developed using Django for the backend and Bootstrap for the frontend. This project showcases the ability to create a functional social media platform, demonstrating skills in web development and backend integration.
- User Registration: Secure user registration and authentication.
- Create Posts: Users can create new posts with text and photos.
- Edit Posts: Users can edit their existing posts.
- Delete Posts: Users can delete their own posts.
This is my first Django-based project where I have integrated user registration for security. ChirpNet allows users to create, edit, and delete posts, similar to how Twitter operates.
- Django: Backend framework for building the application.
- Bootstrap: Frontend framework for styling the application.
- SQLite: Database for storing user and post data.
To run this project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/yourusername/ChirpNet.git cd ChirpNet -
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
-
Apply the migrations:
python manage.py migrate
-
Create a superuser:
python manage.py createsuperuser
-
Run the development server:
python manage.py runserver
-
Access the application: Open your browser and navigate to
http://127.0.0.1:8000.
- Registration: Create an account using the registration form.
- Login: Login with your credentials.
- Create Post: Click on "Create chirp" to create a new post.
- Edit Post: Click on "Edit" next to a post to edit it.
- Delete Post: Click on "Delete" next to a post to delete it.
ChirpNet/
├── chirpnet/
│ ├── migrations/
│ ├── static/
│ ├── templates/
│ ├── __init__.py
│ ├── admin.py
│ ├── apps.py
│ ├── forms.py
│ ├── models.py
│ ├── tests.py
│ ├── urls.py
│ └── views.py
├── chirp/
│ ├── __init__.py
│ ├── asgi.py
│ ├── settings.py
│ ├── urls.py
│ └── wsgi.py
├── media/
├── db.sqlite3
├── manage.py
└── requirements.txtContributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License. See the LICENSE file for details.