An ecommerce API created using the Django REST Framework.
Clone this repository
git clone https://github.com/Arthur236/e-commerce-drf.git
cd path to project directory
pip install virtualenv
pip install virtualenvwrapper
mkvirtualenv project-name
source _folder_to_env/bin/activate
All the requirements for the project are located in the requirements.txt file in the project root.
You can automatically install all of them by typing:
pip install -r requirements.txt
You can use any database you please but by default the app uses PostgreSQL. Create your database and make migrations:
python manage.py makemigrations
Then migrate the changes:
python manage.py migrate
python manage.py test
First you must export or set the environment variables like so:
export DATABASE_NAME=db_name export DATABASE_USER=postgres_user export DATABASE_PASSWORD=db_password
Then run the application using:
python manage.py runserver