Skip to content

leahpeker/chat_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chat app

About The Project

This project was an exciting way to get a basic insight into how chat apps work. The app includes all models, forms, and views required to put the app together. It also includes unit testing and integration testing. I did my best to create a holistic testing framework. I also added some CSS to get a general flow.

(back to top)

Getting Started

These steps will guide you through project setup. This project utilizes sqlite.

Prerequisites

Homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

You may be prompted to do a few additional steps to add brew to your PATH. Follow the steps given in the terminal.

Python3.10

brew install python@3.10

Installation

  1. Clone the repository
    git clone https://github.com/leahpeker/chat_app.git
  2. Open the chat_app directory
    cd chat_app
  3. Create virtual environment
    python3.10 -m venv myenv
  4. Activate virtual environment
  • Mac
    source myenv/bin/activate
  • Windows
     myenv\Scripts\Activate
  1. Install requirements
    pip3 install -r requirements.txt
  2. Make migrations to set up the database
    python3 manage.py makemigrations
    python3 manage.py migrate

(back to top)

Usage

With the virtual environment activated, run the server.

python3 manage.py runserver

At this point, you should be able to access the application and see all conversations, messages, and thoughts. Users can also start new conversations, send new messages, and reply with new thoughts. On the homepage, users can also search for conversations by title and search for messages by content.

The start date for each new conversation is automatically added to the database and is displayed under the conversation title when you click into a conversation. The user is inputting the date info without even knowing.

The send date and time for both messages and message thoughts are automatically recorded in the database and are displayed within the conversation. The user is inputting the datetime info without even knowing.

The app will be delivered with some conversations pre-loaded into the Sqlite database. Enjoy!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published