Skip to content

Latest commit

 

History

History
30 lines (29 loc) · 752 Bytes

File metadata and controls

30 lines (29 loc) · 752 Bytes

Структура

- app.js   
- package.json   
- index.js   
- views/   
  - home.handlebars   
  - layouts/   
    - main.handlebars   	
- public/   
  - main.js     
  - style.css 
  1. npm install
  2. node app
  3. touch Procfile in Procfile web: node app.js

Предварительная работа в psql

  1. При входе в SQL SHELL(psql) все данные берем из pgAdmin3 or Heroku
  2. psql \! chcp 1251 - исправляем корявый шрифт
  3. \dt - список таблиц в БД
  4. Создаем новую таблицу
create table flights1(
id serial primary key,
origin varchar(50) not null,
destination varchar(50) not null,
duration integer
);