Skip to content

rahmatsugiarto/UAS-Microservice-CRUD-API-PL-SQL-UNSIA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UAS Microservice CRUD API PL/SQL UNSIA

Sebuah project app API CRUD menggunakan framework Django REST Framework (DRF) dan PostgreSQL.

How to Run

Berikut yang harus kamu ikuti untuk menjalankan app ini:

  1. Setelah clone projek dan membukanya

  2. Sesuaikan config database anda di unsia/settings.py

    DATABASES = {
        'default':{
            'ENGINE': 'django.db.backends.postgresql',
            'NAME': 'db_unsia',
            'USER': 'postgres', -> change your user postgres
            'PASSWORD': '123456789', -> your password postgres
            'HOST': 'localhost'
        }
    }
  3. Install Python 3

    WindowsOS
    How to Install Python on Windows

    MacOS

    brew install python3
  4. Install virtualEnv

    WindowsOS

    pip3 install virtualenv

    MacOS

    sudo pip3 install virtualenv
  5. Create Virtualenv di path projek ini

    WindowsOS

    python -m venv venv

    MacOS

    virtualenv venv -p python3
  6. Aktifasikan Virtualenv

    WindowsOS

    venv\Scripts\activate

    MacOS

    source venv/bin/activate

    untuk nonaktikannya

    deactivate
  7. Install requirement dengan command:

    pip install -r requirements.txt
  8. Makemigrations Database

    python manage.py makemigrations users
    python manage.py migrate
  9. Jalan kan server

    python manage.py runserver

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages