Skip to content

Commit 2ba35c0

Browse files
committed
cleanup
1 parent 9952534 commit 2ba35c0

13 files changed

Lines changed: 9 additions & 1259 deletions

README.md

Lines changed: 8 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
1-
# Simple Social
1+
# Simple Social Frontend
22

3-
A full-stack social media application offering a unified platform for sharing images and videos. The project is built using a modern **FastAPI** backend and a **Streamlit** frontend, featuring secure user authentication and media management via ImageKit.
3+
A Streamlit frontend application offering a unified platform for sharing images and videos. This is the UI client for the Simple Social application, featuring user authentication, media upload via ImageKit, and a dynamic social feed.
44

55
## Features
66

7-
- **User Authentication**: concise and secure signup/login/logout flow using JWT (JSON Web Tokens) backed by `fastapi-users`.
8-
- **Media Upload**: Support for image and video uploads with cloud storage integration using **ImageKit.io**.
9-
- **Social Feed**: Real-time feed displaying posts from all users with timestamps and owner details.
10-
- **Interactive UI**: A responsive, clean interface built with Streamlit.
11-
- **Database**: SQLite with asynchronous SQLAlchemy for efficient data handling.
7+
- **User Authentication**: JWT-based signup and login flows communicating with a remote backend.
8+
- **Media Upload**: Support for image and video uploads directly integrated via the backend.
9+
- **Social Feed**: Real-time feed displaying posts from all users with timestamps and captions.
10+
- **Interactive UI**: A responsive, clean interface built entirely with Streamlit.
1211

1312
## Tech Stack
1413

15-
- **Backend**: FastAPI, Uvicorn, SQLAlchemy, Pydantic
1614
- **Frontend**: Streamlit
17-
- **Authentication**: FastAPI Users
18-
- **Storage**: ImageKit IO
19-
- **Database**: SQLite (Async)
15+
- **Http Client / API Integration**: Requests (Python)
2016

2117
## Installation
2218

@@ -42,32 +38,9 @@ A full-stack social media application offering a unified platform for sharing im
4238
pip install -r requirements.txt
4339
```
4440

45-
4. **Environment Configuration:**
46-
Create a `.env` file in the root directory and add your ImageKit credentials:
47-
```env
48-
# ImageKit Credentials
49-
IMAGEKIT_PRIVATE_KEY=your_private_key
50-
IMAGEKIT_PUBLIC_KEY=your_public_key
51-
IMAGEKIT_URL_ENDPOINT=your_url_endpoint
52-
53-
# Secret for JWT
54-
SECRET=your_jwt_secret_string
55-
```
56-
*Note: Ensure you have `SECRET` configured for fastapi-users.*
57-
5841
## Usage
5942

60-
### 1. Start the Backend Server
61-
Run the FastAPI backend server:
62-
```bash
63-
python main.py
64-
# OR
65-
uvicorn app.app:app --reload
66-
```
67-
The API will be available at `http://localhost:8000`. API Docs are at `http://localhost:8000/docs`.
68-
69-
### 2. Start the Frontend Application
70-
In a new terminal, run the Streamlit app:
43+
Start the Streamlit application:
7144
```bash
7245
streamlit run frontend.py
7346
```

app/app.py

Lines changed: 0 additions & 132 deletions
This file was deleted.

app/db.py

Lines changed: 0 additions & 47 deletions
This file was deleted.

app/images.py

Lines changed: 0 additions & 12 deletions
This file was deleted.

app/schemas.py

Lines changed: 0 additions & 22 deletions
This file was deleted.

app/users.py

Lines changed: 0 additions & 45 deletions
This file was deleted.

debug_imagekit.py

Lines changed: 0 additions & 40 deletions
This file was deleted.

debug_methods.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

debug_sig.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)