Han Luo :luo.han1@husky.neu.edu Zhiyong Zhang :zhang.zhiyo@husky.neu.edu Ying Wang :wang.ying6@husky.neu.edu Yu Fang :fang.yu1@husky.neu.edu
Prerequisite:
1) Have postgresql-10 installed
2) Find file pg_hba.conf in directory: admin:///var/lib/pgsql/10/data
make changes to the last 11 lines: change all the content "METHOD" catagory into "trust"
-
Create database
Entering psql command line
- run: systemctl restart postgresql-10 in terminal
- run: sudo su - postgres
- run: psql
Checking current database
- run: \l
- run: create database db1; (name should be consistent with db1)
- run: \l (check if created successfully)
- run: \q (quit psql command)
run: exit (logout)
-
Run Web Application (backend)
- Open file "webapp" with IDE(Intellij)
- Run project
-
Run web Application (Frontend)
- Open terminal go to directory file "vueapp"
- run: npm i (install node module)
- run: npm run serve
- To register open url: localhost:8081/#/student/register
- Go to any browser open url link to login: localhost:8081
- To check current time and all the registered accounts go to url:localhost:8081/#/student/time
-
Run Unit test In file "webapp" run test java file "DemoApplicationTests"
-
Travis CI build link: https://travis-ci.com/Rohannson/csye6225-fall2018
-
Create Database Entering psql command line
- run: systemctl restart postgresql-10
- run: sudo su - postgres
- run: psql
Checking current database
- run: \l
- run: create database db2; (name should be consistent with db1)
- run: \l (check if created successfully)
- run: \q (quit psql command)
-
Run web application (back end)
- Open file "webapp" with IDE(Intellij)
- Run project in main, runnable class
-
Open postman application
- Click the button on the right of new+ button
- Import file in directory: /postman/Assignment3.postman_collection.json
- After import, Under user folder "POST" will create new users, and "GET" will return existing users. "Body" part of the post can input username and password
- Under Transaction folder, "GET" would be part will return existing transactions, "POST" would new transaction, "DEL" can delete a transaction, and "PUT" can change the content of an existing transaction
- To determin which transaction to operate, change the URL content to the transaction ID to be ultered or deleted and the ID would be added to the end of transaction.