Skip to content

cipher10111/cosmetigo-recommendation

Repository files navigation

Setup

Setup

For postgresql setup

  1. for linux sudo -u postres psql
  2. CREATE DATABASE <DB_NAME>;
  3. CREATE USER <username> WITH PASSWORD '';
  4. ALTER ROLE <username> SET client_encoding TO 'utf8';
  5. ALTER ROLE <username> SET default_transaction_isolation TO 'read committed';
  6. ALTER ROLE <username> SET timezone TO 'UTC';
  7. GRANT ALL PRIVILEGES ON DATABASE <DB_NAME> TO <username>;

DB config

create local_settings.py inside root directory and replace the following contents

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql',
        'NAME': '<DB_NAME>',
        'USER': '<username>',
        'PASSWORD': '<password>',
        'HOST': 'localhost',
        'PORT': '5432'
    }
}

Clone and install packages

  1. https://github.com/cipher10111/cosmetigo-recommendation.git
  2. cd cosmetigo-recommendation
  3. for linux python3 -m venv ./venv
  4. source venv/bin/activate
  5. pip install -r requirements.txt
  6. source .env

Run the server

  1. ./manage.py makemigrations
  2. ./manage.py migrate
  3. ./manage.py createsuperuser
  4. ./manage.py runserver

Demo

Live Preview

You can check the api here

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published