Language Exchange Platform
Install needed packages in your local computer
You can install everything you need in your local computer or if preferred use a virtualenv for Python
Lingobarter requires a MongoDB instance running to connect.
If you don't have a MongoDB instance running, you can quickly configure it:
./bin/mongod --dbpath /tmp/
WARNING: If you want to persist the data, give another path in place of
--dbpath /tmp
If you already have, just define your MongoDB settings:
$ $EDITOR lingobarter/local_settings.py
===============lingobarter/lingobarter/local_settings.py===============
MONGODB_DB = "yourdbname"
MONGODB_HOST = 'your_host'
MONGODB_PORT = 27017
MONGODB_USERNAME = None
MONGODB_PASSWORD = None
=============================================================
# You can also use envvars `export LINGOBARTER_MONGO_DB="yourdbname"`
Install all needed python packages
If you have a virtualenv, activate it!
source env/bin/activate
orworkon env
pip install -r requirements/requirements.txt
Initial data, users and running commands
Create a superuser (required to login on admin interface)
$ python lingo.py accounts_createsuperuser
you@email.com
P4$$W0Rd
Populate with sample data (optional if you want sample data for testing)
$ python lingo.py populate
credentials for /admin will be email: admin@example.com passwd: admin
Run
$ python lingo.py runserver --host 0.0.0.0 --port 5000