Skip to content

nualn/Py-forum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Py-forum

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.

Features

  • 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.

Getting started

Requirements:

  • Python
  • Docker

Installation

  1. Clone repository
git clone https://github.com/nualn/tsoha-chat.git
  1. Create virtual environment for the application
python3 -m venv venv 
  1. Activate the environment
source venv/bin/activate
  1. Install dependencies
pip install -r requirements.txt
  1. Create a postgresql database
docker compose up -d
  1. 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
  1. Initialize the database
python3 init_db.py
  1. Start the program
flask --app src/app.py run
  1. Access the application at http://localhost:5000. You can register a new account or log in with the default user admin with password admin

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published