/AddChain

Software evolution project group 4

Primary LanguageTypeScript

AddChain

Software evolution project group 4

Install instructions

  1. Install node.js
  2. Install `npm
  3. Install PostgreSQL
  4. run npm install -g @angular/cli
  5. cd to addchain-app
  6. run npm install
  7. cd to addchain-server
  8. run npm install
  9. create the file local.config.js in addchain-server/
  10. read instructions in config.js about local.config.js
  11. create the database from addchain-server/database/tables.sql
  12. optional. Fill the database with data from addchain-server/database/testdata.sql

Run

Server: in addchain-server/ run node app.js
Client: in addchain-app run/ run ng serve

How to create frontend component

  1. Go to addchain\addchain-app\src\app\components and use "ng generate component [name of component]"

How to create frontend service

  1. Go to addchain\addchain-app\src\app\services and use "ng generate service [name of service]"
  2. Go to addchain\addchain-app\src\app
  3. Open the app.module.ts file
  4. Add the service to the providers

How to create frontend model

1.Go to addchain\addchain-app\src\app\models and use "ng generate class [name]"