Skip to content
/ mchat Public

micro chat web app, inspired by the flask example apps

License

Notifications You must be signed in to change notification settings

nickjm/mchat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mchat

author: nickjm

Description

Supports account creation, user login, sending messages, and fetching messages.

Setup

  1. Install Flask if needed with pip install Flask
  2. Set you current flask app export FLASK_APP=mychat.py
  3. Initialize the database flask initdb
  4. Start the app with flask run
  5. Finally, navigate to localhost:5000 (or whatever flask is running at according to the feedback in your terminal)

Currently, only messages shown between the current user and the user "nick" show up in the chat log, for simplicity. You'll need to create an account and password first. In fact, the app is currently setup to require senders and recipients to exist as users in order to send a message. Try following these steps to get started:

  1. Navigate to create account and create a user "nick"
  2. Navigate back to create account (it redirects you) and create a user for yourself
  3. Navigate to the login page and log yourself in
  4. Send a message to "nick" via the home page
  5. See that the messages appear in a below the new message area.

Acknowledgments

Frontend code utilizes code and paradigms from Flaskr microblog

About

micro chat web app, inspired by the flask example apps

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published