GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Databases/JavaScript at master · HowProgrammingWorks/Databases

Expand file tree

/

JavaScript

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

JavaScript

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
1-test.js
1-test.js
 
 
2-async.js
2-async.js
 
 
3-promise.js
3-promise.js
 
 
README.md
README.md
 
 
application.js
application.js
 
 
db.js
db.js
 
 
example.sql
example.sql
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 

README.md

Подготовка окружения для работы с БД

  • Установка сервера для Linux, Windows, MacOS, BSD, Solaris
    • Дистрибутивы: https://www.postgresql.org/download/
    • Инструкция для Fedora: https://fedoraproject.org/wiki/PostgreSQL#Installation
    • Готовые скрипты: https://github.com/metarhia/impress/blob/master/deploy/
  • Установка PgSQL Admin
    • Дистрибутивы: https://www.pgadmin.org/download/
    • Для Fedora: dnf install pgadmin3
  • Создание пользователя и базу данных
    • su - postgres
    • psql попадаем в командную строку PostgreSQL
    • \password postgres устанавливаем паполь пользователю
    • создаем нового пользователя CREATE USER marcus WITH PASSWORD 'marcus';
    • создаем базу данных CREATE DATABASE application OWNER marcus;
    • \quit выходим
  • Исполняем файл с SQL скриптом создания базы
    • sudo psql -U marcus -d application -a -f example.sql
  • Установка зависимостей (включая модуль pg) npm i
  • Запуск node application.js
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.