https://github.com/sreesh-mallya/zoup
Django web app for food delivery and restaurant discovery
https://github.com/sreesh-mallya/zoup
django food-delivery-application python
Last synced: 8 months ago
JSON representation
Django web app for food delivery and restaurant discovery
- Host: GitHub
- URL: https://github.com/sreesh-mallya/zoup
- Owner: sreesh-mallya
- Created: 2020-06-15T04:19:47.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-19T02:47:44.000Z (over 5 years ago)
- Last Synced: 2024-12-27T23:42:47.547Z (10 months ago)
- Topics: django, food-delivery-application, python
- Language: HTML
- Homepage:
- Size: 4.45 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Zoup
Django web app for food delivery and restaurant discovery.## Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
### Prerequisites
#### Install Python
You'll need Python 3.0+ installed before installing and using this package. Recommended using the Python version in runtime.txt.#### Install pipenv
Use the following command to install `pipenv`:
```shell script
pip install pipenv
```#### Create virtualenv and Install Dependencies
Mount to project directory and run the following commands:
```shell script
cd ./path/to/zoup
pipenv shell
```
This should create a virtualenv and activate it. Install dependencies using:
```shell script
pipenv install
```
This will use Pipfile and Pipfile.lock to install project dependencies.#### Create a Local Development Settings File
Create a file `local.py` in `zoup/settings` with the following code:
```python
import osBASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
SECRET_KEY = os.environ.get('SECRET_KEY', 'g1onp1%knxzj-fvs3&eh@*9+*=oh7e&r-o70r36yz_zq68+cp*')
DEBUG = True
ALLOWED_HOSTS = ['127.0.0.1', 'localhost']
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}SESSION_COOKIE_SECURE = False
CSRF_COOKIE_SECURE = False
SECURE_SSL_REDIRECT = False
```
This configuration will be used when running the app locally.### Run the app
Use the following commands to run the app:
```shell script
python manage.py migrate
python manage.py loaddata zoup_app/fixtures/initial.json
python manage.py runserver
```