A simple Django app with Facebook Login integration.
The codebase is build using Django 2.0, django-allauth and Python 3.6.
- Edit the
deployment/fixtures.json
and fill the missing private keys. - Run the following commands from the root directory. The default database is SQLite, so there is no need for database setup.
virtualenv -p python3 env
source env/bin/activate
pip install -r requirements.txt
python manage.py migrate
python manage.py loaddata deployment/fixtures.json
Note that the deauthorize callback is only available over HTTPS, and your machine needs to be reachable outside your network. You can set up something like this.
A simple configuration for a production setup is included in the deployment
directory.
- Again edit the
deployment/fixtures.json
file. Create theenvvars.sh
andmy.cnf
files from their.sample
counterparts, and fill the missing values. - Run
bash deployment/build.sh
- Link the
social_sweethearts_coding_test.nginxconf
file to your nginx server and thesocial_sweethearts_supervisord
to your instance ofsupervisor