/megaphone

Demo web app based on aiohttp.web and React components

Primary LanguageJavaScript

megaphone

Simple demo web app based on aiohttp.web, websockets and React components

Preview

Run

#####Make virtual env:

Python 3.5 is required.

$ mkvirtualenv --python=/path/to/python3 megaphone

Check python version:

$ python -V

More about virtualenvwrapper

#####Install dependecies:

$ pip install -r requirements.txt

#####Cryptography package: Cryptography package is used for working with passwords.

Try:

$ pip install cryptography

For information about installation take a look at cryptography docs

For example, installation on OS X may look like this:

$ brew install openssl
$ env LDFLAGS="-L$(brew --prefix openssl)/lib" CFLAGS="-I$(brew --prefix openssl)/include" pip install cryptography

#####Install Node modules

$ npm install

#####Run server

$ python manage.py

Visit http://127.0.0.1:8080

App is using Heroku postgres database so you dont have to install and configure your own database for demo purposies.

#####Demo Login:

Email: demo@demo.com

Password: demo123

#####Utilits

For local databse use these utilits to create tables, demo users and fill dummy data:

python -m utils.create_tables

python -m utils.fill_dummy