v1ku / collectaive

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Collective

Collective is a real-time chat application that allows users to join group chats, send messages, and manage their profiles. It uses a Flask backend to manage server-side logic and a Vue.js frontend for the user interface.

Project Structure

Backend

The backend is built using Flask and is located in the stern folder.

stern/
│
├── app/ (Recommended: move your app files into a separate 'app' directory)
│ ├── init.py
│ ├── models.py
│ ├── server.py
│ ├── views.py
│ └── config.py
│
├── migrations/
│
├── pycache/
│
├── venv/
│
└── wsgi.py

Frontend

The frontend is built using Vue.js and is located in the bow folder.

bow/
│
├── public/
│ ├── index.html
│ └── favicon.ico
│
├── src/
│ ├── assets/
│ │
│ ├── components/
│ │ ├── ChatMenu.vue
│ │ ├── ChatList.vue
│ │ ├── ChatInput.vue
│ │ ├── Login.vue
│ │ ├── ChatViewer.vue
│ │ ├── ChatRoom.vue
│ │ └── UserSettings.vue
│ │
│ ├── router/
│ │ └── index.js 
│ │
│ ├── store/
│ │ └── index.js 
│ │
│ ├── socket/
│ │ └── index.js 
│ │
│ ├── App.vue
│ ├── main.js
│ └── main.css
│
├── tailwind.config.js
│
├── babel.config.js
│
├── package.json
│
└── jsconfig.json

Installation

Backend

  1. Navigate to the stern folder:

    cd stern
    
  2. Create a virtual environment and activate it:

    python3 -m venv venv
    source venv/bin/activate
    
  3. Install the required dependencies:

    pip install -r requirements.txt
    
  4. Run the Flask server:

    export FLASK_APP=server.py
    flask run
    

Frontend

  1. Navigate to the bow folder:

    cd bow
    
  2. Install the required dependencies:

    npm install
    
  3. Run the Vue.js development server:

    npm run serve
    
  4. Open the application in your browser at http://localhost:8080.

Contributing

Feel free to submit issues and pull requests to improve this project. Your contributions are greatly appreciated!

About


Languages

Language:Python 98.5%Language:C++ 0.9%Language:C 0.3%Language:Cython 0.1%Language:Mako 0.1%Language:PowerShell 0.1%Language:JavaScript 0.1%Language:Vue 0.0%Language:CSS 0.0%Language:Shell 0.0%Language:Assembly 0.0%Language:Dockerfile 0.0%Language:HTML 0.0%Language:Batchfile 0.0%