An open API service indexing awesome lists of open source software.

https://github.com/kazimovzaman2/x-clone-swiftui

X-Clone-SwiftUI is a social media app clone built with SwiftUI for the frontend and Django for the backend.
https://github.com/kazimovzaman2/x-clone-swiftui

django django-rest-framework ios python swift swiftui

Last synced: 3 months ago
JSON representation

X-Clone-SwiftUI is a social media app clone built with SwiftUI for the frontend and Django for the backend.

Awesome Lists containing this project

README

        

# X-Clone-SwiftUI

An X social media app clone built with SwiftUI for the front end and Django for the back end. This project aims to replicate core features of the X platform, including user authentication, posting, and news feed functionality.

## Features

- **User Authentication**: Users can register, login, and log out.
- **News Feed**: Display posts in a user-friendly, scrollable view.
- **Post Creation**: Users can create and share text-based posts.
- **Responsive UI**: A sleek, modern design built with SwiftUI.
- **Backend API**: Django backend to handle user data, posts, and interactions.

Screenshots:

![1](https://github.com/user-attachments/assets/37a1b5e2-bf2e-45c8-84cd-58261040fd43)
![2](https://github.com/user-attachments/assets/8d078b70-b0c0-4f60-bacc-8018ea773d89)
![3](https://github.com/user-attachments/assets/c15a46de-2bb2-4d6b-a6d2-7a83a1cb4462)

## Installation

### Backend (Django)

1. Clone the backend repository:
```bash
git clone https://github.com/kazimovzaman2/X-Clone-SwiftUI.git backend
```
2. Navigate to the backend directory and install dependencies:
```bash
cd backend
pip install -r requirements.txt
```
3. Apply migrations:
```bash
python manage.py migrate
```
4. Run the Django development server:
```bash
python manage.py runserver
```

### Frontend (SwiftUI)
1. Clone the frontend repository:
```bash
git clone https://github.com/kazimovzaman2/X-Clone-SwiftUI.git mobile
```
2. Open the project in Xcode:
```bash
open mobile/X-Clone-SwiftUI.xcodeproj
```
3. Build and run the app on your iOS simulator or device.

## Configuration
- Set the API endpoint URL in the frontend code to match your Django server URL.

## Dependencies
- SwiftUI: For building the mobile app UI.
- Django: For the backend API.
- PostgreSQL/MySQL: For database management (set up as per Django settings).