Thanks to visit codestin.com
Credit goes to github.com

Skip to content

dmitry-moroz/4rum

Repository files navigation

4RUM

This is social WEB application Internet forum. An Internet forum, is an online discussion site where people can hold conversations in the form of posted messages.

The application implemented with Python WEB framework Flask.

To run application:

# Prepare virtual environment
$ mkvirtualenv 4rum --python=/usr/bin/python2.7
$ pip install -r requirements/dev.txt
# Prepare all needed environment variables for WEB application
$ export [email protected]
$ export MAIL_PASSWORD=secret1
$ export [email protected]
$ export DB_USER=forum_app
$ export DB_NAME=forum
$ export DB_PASSWORD=secret2
$ export DB_HOST=pg
# Prepare DB
$ python manage.py db upgrade
$ python manage.py insert_initial_data
$ python manage.py insert_fake_data
# Compile translations
$ pybabel compile -d forum/translations
# Run server
$ python manage.py runserver -h 0.0.0.0 -p 8000

To run application using docker and docker-compose:

# Install docker and docker-compose
# Prepare pg.env file with environment variables for DB
# Prepare web.env file with environment variables for WEB application
$ docker-compose up -d
$ docker-compose exec web python manage.py db upgrade
$ docker-compose exec web python manage.py insert_initial_data
$ docker-compose exec web python manage.py insert_fake_data

Go to http://127.0.0.1:8000/

About

Internet forum implemented with Python WEB framework Flask

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published