Skip to content

Latest commit

 

History

History
81 lines (63 loc) · 1.68 KB

File metadata and controls

81 lines (63 loc) · 1.68 KB

An Angular 7 Application With Authentication (PEAN)

PEAN = PostgreSQL, Express, Angular, Node.js

other technologies used in this app

install requirements

  1. install Node.js/download

  2. install Angular CLI

$ npm install -g @angular/cli
  1. install postgreSQL and setup a database -> postgreSQL/docs

  2. edit config files, especially the database connection in there

$ cd /<app folder>/config/default.json
  1. install sequelize CLI, migrate and seed
$ npm install -g sequelize-cli

// change to app folder
$ cd /<app folder>

// migrate the tables
$ sequelize db:migrate

// seed default data
$ sequelize db:seed:all

init the app

$ npm install --save

run the app

// in dev mode (nodemon is involved)
$ npm run dev

// in prod mode
$ npm run prod

build the app

// The build artifacts will be stored in the `dist/` directory
$ ng build

// for a production build
$ ng build --prod

unit tests

// Karma
$ ng test

// Protractor
$ ng e2e

// TSLint
$ ng lint 

the tables (/server/models/...)

  • UserSession
  • UserRole
  • User
  • Todo (to play around)