Skip to content

afsharm/byprop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

byprop

A PERN project

More info

https://dev.to/afsharm/trying-node-js-hi3

Links

https://github.com/ahmadazizi/iran-cities

https://github.com/arastu/iran

Useful synatx

sudo su - postgres

pg_dump postgres > postgres_db.bak

pg_dump -Fc --no-acl --no-owner --dbname byprop -t province -t county > pro-county.sql

psql db_development < postgres_db.dump

pg_restore -h localhost -p 5432 -U postgres -d wps -v pro-county.sql
CREATE TABLE mytable

(

    id SERIAL PRIMARY KEY,

    name varchar(50) NOT NULL

);

The command pwd shows you where you are

curl http://localhost:3005/load


export DATABASE_URL=postgresql://postgres:123@localhost:5432/byprop
heroku pg:backups:restore https://raw.githubusercontent.com/afsharm/byprop/master/misc/pro-county.sql DATABASE_URL -a byprop

About

A PERN project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published