Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 709 Bytes

File metadata and controls

42 lines (34 loc) · 709 Bytes

API REST WITH DJANGO

INSTALL

pipenv install django
pipenv install djangorestframework
pipenv install django-cors-headers
pipenv install psycopg2

DEPENDENCIES

$ npm install -g @angular/cli
AFTER
$ ng version  
CREATE NEW PROJECT IN ANGULAR JS
$ ng new nameAppProject
AND
$ npm update

SETTINGS IN DATABASE

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql',
        'NAME': 'YOUR NAME DB',
        'USER': 'YOUR USERNAME',
        'PASSWORD': 'YOUR PASSWORD',
        'HOST': 'YOUR HOST/ localhost',
        'PORT': '5432'
    }
}

Screenshot