Skip to content

Instantly share code, notes, and snippets.

View antheiz's full-sized avatar
🏠
Working from home

antheiz

🏠
Working from home
View GitHub Profile

Catatan Deployment ke Server VPS - FT.UNIPA.AC.ID

Dokumen ini berisi panduan dan catatan mengenai proses setup server untuk website https://ft.unipa.ac.id, termasuk konfigurasi untuk aplikasi Laravel dan React JS yang di-host pada server Ubuntu yang sama, menggunakan Nginx sebagai web server dan PM2 untuk manajemen proses aplikasi.

1. Persiapan Awal Server

  • Melakukan update dan upgrade sistem operasi server.

sudo apt update

1. Introduction
Pastikan GIT telah terinstall di Laptop/PC Anda Cek untuk memasikan ketik Perintah "git --version" pada Terminal
2. Set up Vundle:
clone repo Vundle terlebih dahulu dan letakan pada directory .vim
*git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim*
3. Configure Plugins:
@antheiz
antheiz / perpustakaan.relax
Last active October 8, 2020 07:03
Database design at the basic stage with library case studies, this is part of the Database Systems course.
group: Perpustakaan
description: "Database design at the basic stage with library case studies, this is part of the Database Systems course."
Buku = {
isbn, judul, penulis, penerbit, tahun, jumlah
100736, 'Matematika Diskrit' , 'Bacista J' , 'Informatika' , 2010 , 3
100737, 'Kalkulus' , 'Jhon K' , 'Andi Publisher' , 2013 , 3
100738, 'Ilmu Pengetahuan Alam' , 'Kuncoro' , 'Pustaka' , 2009 , 3
100739, 'Psikologi' , 'Budi S' , 'Airlangga' , 2011 , 3
100740, 'Kewarganegaraan' , 'R Soehae' , 'Pustaka' , 2010 , 3
@antheiz
antheiz / Step to run PostgresSQL on Docker Container
Last active September 10, 2023 12:07
Step for create PostgreSQL on Docker Container on Ubuntu
### Step for create PostgreSQL and PGAdmin on Docker Container on Ubuntu
---
* Step 1 - Download/Pull image Postgre on [Docker Hub](https://hub.docker.com/_/postgres)
- docker pull postgres
- docker pull postgres:alpine **(if you want to get version for your postgres please use this)
* Step 2 - Check images postgres on your docker
- docker images

How to create database from models.py with flask-sqlalchemy


  • Step 1 - Create files database

    • from app import db
    • db.create_all()
  • Step 2 - Create Table from models

    • from app.models import User, Post