PEAN = PostgreSQL, Express, Angular, Node.js
-
install Node.js/download
-
install Angular CLI
$ npm install -g @angular/cli
-
install postgreSQL and setup a database -> postgreSQL/docs
-
edit config files, especially the database connection in there
$ cd /<app folder>/config/default.json
- 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
$ npm install --save
// in dev mode (nodemon is involved)
$ npm run dev
// in prod mode
$ npm run prod
// The build artifacts will be stored in the `dist/` directory
$ ng build
// for a production build
$ ng build --prod
// Karma
$ ng test
// Protractor
$ ng e2e
// TSLint
$ ng lint
- UserSession
- UserRole
- User
- Todo (to play around)