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
Step 1 - Create files database
Step 2 - Create Table from models
| ### 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 |
| 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 |
| 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: |
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.
Melakukan update dan upgrade sistem operasi server.
sudo apt update