An open API service indexing awesome lists of open source software.

https://github.com/plugarut/mysteryshopping


https://github.com/plugarut/mysteryshopping

Last synced: 8 months ago
JSON representation

Awesome Lists containing this project

README

          

### Install dependencies for Python

```
sudo apt-get install python-dev libjpeg8-dev python3-dev libpq-dev python-pip
```

### Setup

1. Install [PostgreSQL](https://help.ubuntu.com/community/PostgreSQL#Installation)
2. Create a [user](https://help.ubuntu.com/community/PostgreSQL#Alternative_Server_Setup) with superuser role
3. `sudo pip install virtualenv`
4. `sudo pip install virtualenvwrapper`, **[Info](https://virtualenvwrapper.readthedocs.io/en/latest/)**
5. [Install](https://github.com/yyuu/pyenv-installer) `pyenv` for installing the appropriate python version
6. `pyenv install 3.4.3` *the python version running on production server*
7. Create the project virtualenv `mkvirtualenv --python=$(pyenv global 3.4.3 && pyenv which python) mystery_venv`
8. `workon mystery_venv` to load the newly added variables
9. `git clone git@github.com:SparkResearchLabs/MysteryShopping.git`
10. `cd MysteryShopping`
11. `pip install -r requirements/local.txt`
12. `createdb mystery_shopping`
13. `python manage.py migrate` Make migration
14. `python manage.py test` Try to fix the test errors if any occur
15. `python manage.py createsuperuser`
16. `python manage.py runserver`

If the server is up and running you're golden and can start working.