$ sudo su - postgres
# createdb shopDB
# psql shopDB
shopDB=# \password postgres
and type new password when prompted.dbConfig.ts
file assumes password ispostgres
.
3. Actual tables in this database will be created by javascript code when running the project for the first time.
npm install
npm run build
- will build project
npm run dev
- dev server
npm run start
- run prod
Based on: https://www.webmound.com/best-typescript-setup-with-nodejs-express-project/