- download and install postgresql
- for linux sudo -u postres psql and for windows login with credentials
- CREATE DATABASE <DB_NAME>;
- CREATE USER <username> WITH PASSWORD '';
- ALTER ROLE <username> SET client_encoding TO 'utf8';
- ALTER ROLE <username> SET default_transaction_isolation TO 'read committed';
- ALTER ROLE <username> SET timezone TO 'UTC';
- GRANT ALL PRIVILEGES ON DATABASE <DB_NAME> TO <username>;
- install virtualenv using pip install virtualenv
- git clone https://github.com/cipher10111/cosmetigo.git
- cd cosmetigo
- for linux or bash shell python3 -m venv ./venv and for windows virtualenv venv
- for linux source venv/bin/activate and for windows venv\Scripts\activate.bat
- pip install -r requirements.txt
- python manage.py runserver
- cd frontend
- npm i
- npm run dev
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', 'NAME': '<DB_NAME>', 'USER': '<username>', 'PASSWORD': '<password>', 'HOST': 'localhost', 'PORT': '' } }