Note This application is not deployed anywhere. You can run it locally by following the instructions below.
This is a simple forum type web app that enables you to chat with other users. Written in python and powered by Flask.
- User authentication: Create an account or log in with an existing one.
- Forums: Browse forums on topics of your interest. Only admins can create new forums.
- Create posts: Create new posts in forums. You have to be logged in to do this.
- Comment posts: Comment on posts. You have to be logged in to do this.
- Check user profiles: Check other users' profiles and see their posts and comments.
- Python
- Docker
- Clone repository
git clone https://github.com/nualn/tsoha-chat.git
- Create virtual environment for the application
python3 -m venv venv
- Activate the environment
source venv/bin/activate
- Install dependencies
pip install -r requirements.txt
- Create a postgresql database
docker compose up -d
- Create .env file with the following variables to the apps root directory
SECRET_KEY=
DATABASE_URL=
If using the provided docker-compose file, the database url is
postgresql://postgres:postgres@localhost:5432/postgres
- Initialize the database
python3 init_db.py
- Start the program
flask --app src/app.py run
- Access the application at http://localhost:5000. You can register a new account or log in with the default user
admin
with passwordadmin