martinarroyo / social-sweethearts-coding-test

A coding test project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Social Sweethearts Coding Test

A simple Django app with Facebook Login integration.

The codebase is build using Django 2.0, django-allauth and Python 3.6.

Development setup:

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

Production setup

A simple configuration for a production setup is included in the deployment directory.

  • Again edit the deployment/fixtures.json file. Create the envvars.sh and my.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 the social_sweethearts_supervisord to your instance of supervisor

About

A coding test project


Languages

Language:Python 86.3%Language:Shell 9.2%Language:HTML 4.5%