{"repo":"thomas545/ecommerce_api","free":true,"listed":false,"github":"https://github.com/thomas545/ecommerce_api","clone":"git clone https://github.com/thomas545/ecommerce_api.git","description":"E-commerce by Django Rest Framework","language":"Python","stars":298,"topics":["django","python","django-rest-framework","ecommerce","ecommerce-api","restful-api"],"license":"MIT","category":"ecommerce","readme_excerpt":"Ecommerce API Documentation: 1. Django 2. Django Rest Framework 3. API Translation 4. Upload Package to Pypi Installation: - you must install Elastic Search on your computer (you can use brew) System Dependencies: 1. Install git on Linux: sudo apt-get install -y git 2. Clone or download this repo. 3. Install pip and vitualenv on Linux: sudo apt-get install -y virtualenv sudo apt-get install -y python3-pip 4. Create a virtual environment on Linux or Mac: virtualenv -p python3 /.virtualenvs/ecommerce 5. Activate the virtual environment on Linux or Mac: source /.virtualenvs/ecommerce/bin/activate 6. Install requirements in the virtualenv: pip3 install -r requirements.txt Relational database dependencies (PostgreSQL): 1. Install components for Ubuntu: sudo apt-get update sudo apt-get install python-dev libpq-dev postgresql postgresql-contrib 2. Switch to postgres (PostgreSQL administrative user): sudo su postgres 3. Log into a Postgres session: psql 4. Create database with name ecommerce : CREATE DATABASE ecommerce; 5. Create a database user which we will use to connect to the database: CREATE USER ecommerce user WITH PASSWORD 'ecommerce pass'; 6. Modify a few of the connection parameters for the user we just created: ALTER ROLE ecommerce user SET client encoding TO 'utf8'; ALTER ROLE ecommerce user SET default transaction isolation TO 'read committed'; ALTER ROLE ecommerce user SET timezone TO 'UTC'; 7. Give our database user access rights to the database we created: GRANT ALL P","default_branch":null,"files":null,"tree":[],"storefront":"/r/thomas545","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/thomas545/ecommerce_api/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}