Skip to content

Angular 7 application with authentication (PEAN = PostgreSQL, Express, Angular, Node.js)

License

Notifications You must be signed in to change notification settings

ztomm/Angular-7-authentication-postgreSQL

Repository files navigation

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)

About

Angular 7 application with authentication (PEAN = PostgreSQL, Express, Angular, Node.js)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published