https://github.com/plugarut/mysteryshopping
https://github.com/plugarut/mysteryshopping
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/plugarut/mysteryshopping
- Owner: PlugaruT
- Created: 2018-09-26T05:29:06.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-26T05:37:15.000Z (over 7 years ago)
- Last Synced: 2025-10-08T11:58:25.969Z (8 months ago)
- Language: Python
- Size: 1.37 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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.