Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feedback #1

Open
wants to merge 291 commits into
base: feedback
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
291 commits
Select commit Hold shift + click to select a range
f3e4478
Add account page2 and page3
nickwang333 Oct 26, 2021
3a270d5
updated charts
yym1928 Oct 26, 2021
5f88327
Merge pull request #19 from yym1928/15-account-book-main-page-chart
yym1928 Oct 26, 2021
1376661
add function changes
YaolinZhang Oct 26, 2021
0e63df9
add function changes
YaolinZhang Oct 26, 2021
000d78b
Complete tests from Mockaroo
nickwang333 Oct 26, 2021
a8eb81e
updated chart labels
yym1928 Oct 26, 2021
942487f
Merge pull request #20 from yym1928/15-account-book-main-page-chart
yym1928 Oct 26, 2021
9fa622b
adding trsc styles
YaolinZhang Oct 26, 2021
8cd4946
Merge branch '15-account-book-main-page' of https://github.com/softwa…
YaolinZhang Oct 26, 2021
f13e26b
Test with mockaroo
nickwang333 Oct 27, 2021
4caf048
Merge pull request #21 from software-students-fall2021/20-account-boo…
nickwang333 Oct 27, 2021
f42589e
add dollar sign on display
yym1928 Oct 27, 2021
719feb7
Merge pull request #22 from yym1928/15-account-book-main-page-chart
yym1928 Oct 27, 2021
b88cd43
mock data changes
YaolinZhang Oct 27, 2021
565dd11
Merge branch '15-account-book-main-page' of https://github.com/softwa…
YaolinZhang Oct 27, 2021
ba68068
account book main page 1.0 is completed
YaolinZhang Oct 27, 2021
552c00f
input boxes
Susan0223 Oct 27, 2021
c81753d
Merge branch 'master' into 15-account-book-main-page
YaolinZhang Oct 27, 2021
ab6d4f0
Merge pull request #23 from software-students-fall2021/15-account-boo…
YaolinZhang Oct 27, 2021
8ac5a56
Diary-Interface
Susan0223 Oct 27, 2021
1160047
package.json udpate
Susan0223 Oct 27, 2021
4ec9e4d
Linked the pages
yym1928 Oct 27, 2021
cbe73b3
Merge pull request #24 from yym1928/master
yym1928 Oct 27, 2021
e861ae2
Update README.md
Susan0223 Oct 27, 2021
29ecd75
Update README.md
YaolinZhang Oct 27, 2021
ac35745
update readme
yym1928 Oct 27, 2021
8417683
Merge branch 'master' into master
yym1928 Oct 27, 2021
34ff105
Merge pull request #25 from yym1928/master
yym1928 Oct 27, 2021
c1ec2cc
Add cotribution in readme
Oct 27, 2021
743eea4
Merge branch 'master' of https://github.com/software-students-fall202…
Oct 27, 2021
05b396d
Edit Readme
Oct 27, 2021
ce64e10
Diary Detail Page Added
Susan0223 Oct 29, 2021
53b5822
Diary Detail Added
Susan0223 Oct 29, 2021
6bd7370
Change Directory
Susan0223 Oct 29, 2021
0ac2366
Diary Directory Change
Susan0223 Oct 29, 2021
51d543e
Delete duplicated directory
Susan0223 Oct 29, 2021
1afcc15
overview links to cloud icon in diary
Susan0223 Oct 29, 2021
45e3e1d
Finalize the account book page 2 and 3
nickwang333 Oct 29, 2021
f91adf6
Edit Readme
Oct 29, 2021
b5bf911
Add route to diary, and stickyNav
Oct 29, 2021
df9b966
delete home button
Susan0223 Oct 29, 2021
104b54a
delete home button
Susan0223 Oct 29, 2021
c0b4498
Diary Bottom Nav Adjusted
Susan0223 Oct 29, 2021
ce65187
Modified AB main page
yym1928 Oct 29, 2021
e6463ba
Merge pull request #26 from yym1928/master
yym1928 Oct 29, 2021
6968652
Diary Bottom Nav Adjusted
Susan0223 Oct 29, 2021
705a215
organized files
yym1928 Oct 29, 2021
2277277
Merge pull request #28 from yym1928/master
yym1928 Oct 29, 2021
9f07b8c
Add back button, allow free size for WordCloud
Oct 30, 2021
c8e96f5
Merge pull request #30 from software-students-fall2021/29-Diary-Overv…
Cirrhosis233 Oct 30, 2021
3f20885
set up
YaolinZhang Nov 1, 2021
6528e0d
Merge pull request #31 from software-students-fall2021/15-account-boo…
YaolinZhang Nov 1, 2021
5ac782a
Add basic framework of back-end, add an example of diary overview router
Nov 3, 2021
daec99e
add and search function set up
YaolinZhang Nov 3, 2021
cff0fb8
backend for diary
Susan0223 Nov 6, 2021
0f4d855
backend for diary
Susan0223 Nov 6, 2021
b788371
Refactor front-end code, make different page have same style
nickwang333 Nov 6, 2021
fde758d
Refactor the account page
nickwang333 Nov 6, 2021
6eddeef
Merge pull request #37 from software-students-fall2021/34-accout-book…
nickwang333 Nov 6, 2021
b06f4cf
back end for account book main
YaolinZhang Nov 7, 2021
59f375b
back end problem
YaolinZhang Nov 7, 2021
2f2521c
not using formData anymore
bloombar Nov 7, 2021
e322b6e
Half done backend
nickwang333 Nov 7, 2021
02d1ded
Merge pull request #39 from software-students-fall2021/32-account-boo…
nickwang333 Nov 7, 2021
b0db162
Add Basic Login API
Nov 8, 2021
fca4684
Merge pull request #41 from software-students-fall2021/40-login-backend
Cirrhosis233 Nov 8, 2021
f4af8dc
debug backend
YaolinZhang Nov 8, 2021
a84b94b
backend for account book main page
YaolinZhang Nov 8, 2021
6235e10
back end for account book main page
YaolinZhang Nov 8, 2021
8cddccb
refactor back end
YaolinZhang Nov 8, 2021
4084e96
Merge pull request #42 from software-students-fall2021/15-account-boo…
YaolinZhang Nov 8, 2021
fccba86
Diary Router
Susan0223 Nov 8, 2021
19cdc71
Diary Router
Susan0223 Nov 8, 2021
9c48150
updated piechart backend
yym1928 Nov 8, 2021
34bc3ac
Merge pull request #43 from yym1928/36-Diary-main
yym1928 Nov 8, 2021
d70a045
Database support
Nov 12, 2021
3e532e8
Merge branch 'master' into 40-login-backend
Cirrhosis233 Nov 12, 2021
5327dc0
Solve conflit
Nov 12, 2021
f39a6f9
Merge pull request #44 from software-students-fall2021/40-login-backend
Cirrhosis233 Nov 12, 2021
0b888a8
Add unit test for diary overview, add README.md
Nov 12, 2021
b5c9a28
Merge pull request #46 from software-students-fall2021/45-overview-test
Cirrhosis233 Nov 12, 2021
1f971a4
Add wordcloud format testing
Nov 12, 2021
a60e7e2
Merge pull request #47 from software-students-fall2021/45-overview-test
Cirrhosis233 Nov 12, 2021
5015db8
test files for Diary
Susan0223 Nov 12, 2021
3ddce26
diary-test branch merge
Susan0223 Nov 12, 2021
a26d644
Delete Product Backlog draft.md
Susan0223 Nov 12, 2021
4604324
Update README.md
Susan0223 Nov 12, 2021
ba8db15
update
yym1928 Nov 12, 2021
fe04b4a
Merge branch 'master' of https://github.com/yym1928/project-setup-nic…
yym1928 Nov 12, 2021
4e2ff3e
unit test for account book main page
YaolinZhang Nov 12, 2021
b7b93ef
Merge pull request #49 from software-students-fall2021/15-account-boo…
YaolinZhang Nov 12, 2021
6b533d5
Update README.md
YaolinZhang Nov 12, 2021
a378025
Pie chart data test
yym1928 Nov 12, 2021
6760fde
Merge pull request #50 from yym1928/36-Diary-main
yym1928 Nov 12, 2021
e7f4eb6
Add JWT tokens gen
Nov 12, 2021
514e1fe
Add token gen
Nov 12, 2021
b7b661c
Finished Back End
nickwang333 Nov 13, 2021
c6fc5b7
Finished Back End
nickwang333 Nov 13, 2021
b1b45c3
Merge pull request #59 from software-students-fall2021/58-backend-tra…
nickwang333 Nov 13, 2021
9f015eb
Test Written for transaction page
nickwang333 Nov 13, 2021
6a47a0f
Test Written for transaction page
nickwang333 Nov 13, 2021
7625561
Merge pull request #61 from software-students-fall2021/60-test-back-e…
nickwang333 Nov 13, 2021
d2c8c1f
Add signin auth and sample secret auth
Nov 16, 2021
d4ca18d
Merge branch 'master' into 57-user-auth
Cirrhosis233 Nov 16, 2021
1358a1c
Merge pull request #64 from software-students-fall2021/57-user-auth
Cirrhosis233 Nov 16, 2021
b69eac7
Regen package-lock
Nov 16, 2021
6936482
adding circle-ci config
bloombar Nov 18, 2021
8e86055
Merge pull request #66 from software-students-fall2021/circleci-setup
bloombar Nov 18, 2021
e44da63
database connections for diary details
Susan0223 Nov 21, 2021
6d8fe22
account book adding and searching features are completed
YaolinZhang Nov 22, 2021
6871053
Merge pull request #75 from software-students-fall2021/15-account-boo…
YaolinZhang Nov 22, 2021
32a8c2e
showing users their most 5 recent transactions is done
YaolinZhang Nov 22, 2021
602f270
Merge pull request #71 from software-students-fall2021/diary-database
Susan0223 Nov 22, 2021
e0e3395
Merge pull request #77 from software-students-fall2021/15-account-boo…
YaolinZhang Nov 22, 2021
6986b99
Summary connect to DB
yym1928 Nov 22, 2021
f4d2b70
Update README.md
yym1928 Nov 22, 2021
b5e4447
Merge pull request #80 from software-students-fall2021/yym1928-patch-2
yym1928 Nov 22, 2021
be83353
Database connected to account transaction page
nickwang333 Nov 23, 2021
f67893b
Package-lock.json fixed
nickwang333 Nov 23, 2021
6002dd0
Front-end package-lock.json fixed
nickwang333 Nov 23, 2021
a8c5e52
Merge pull request #81 from software-students-fall2021/78-database-tr…
nickwang333 Nov 23, 2021
bdec2c9
fixed package
nickwang333 Nov 23, 2021
6ba68b3
Merge pull request #83 from software-students-fall2021/82-fix-package…
nickwang333 Nov 23, 2021
bb2d0fe
Summary connect to DB
yym1928 Nov 23, 2021
d3be17a
Merge pull request #85 from yym1928/15-account-book-main-page-chart
nickwang333 Nov 23, 2021
efac390
Delete some data and fix the database of monthly budget
nickwang333 Nov 23, 2021
d875c47
Merge pull request #87 from software-students-fall2021/83-update-databse
nickwang333 Nov 23, 2021
13a7d7e
Setting budget limit is achieved
nickwang333 Nov 23, 2021
ae0c628
Add front-end integration of user function
Nov 23, 2021
3b13dab
Merge pull request #89 from software-students-fall2021/86-transaction…
Cirrhosis233 Nov 23, 2021
4846442
Merge pull request #91 from software-students-fall2021/65-front-end-user
Cirrhosis233 Nov 23, 2021
091b699
diary service test files fixed
Susan0223 Nov 22, 2021
9bd1aca
detail models added
Susan0223 Nov 24, 2021
aac0c19
show diary content and filter overview words
Susan0223 Nov 29, 2021
be44c3c
Merge pull request #98 from software-students-fall2021/diary-optimize
Susan0223 Nov 29, 2021
4278847
Back-end test fixed
nickwang333 Dec 1, 2021
8a9176b
Fixed go back button for transaction page
nickwang333 Dec 1, 2021
670f3d4
Category page completed
nickwang333 Dec 1, 2021
ee65b19
Merge pull request #106 from software-students-fall2021/102-category_…
nickwang333 Dec 1, 2021
001ee45
Test written for transaction category page
nickwang333 Dec 1, 2021
53dbf3f
Merge pull request #107 from software-students-fall2021/106-test-for-…
nickwang333 Dec 1, 2021
5159d34
fix package.json
Dec 1, 2021
3cb2fb2
Merge pull request #110 from software-students-fall2021/109-fix-CI-bug
Cirrhosis233 Dec 1, 2021
0eb4d02
Enabling edit transaction and save the data in db
nickwang333 Dec 1, 2021
b0383fb
Edit test time to 5000
nickwang333 Dec 2, 2021
5d7b66e
Update the package.json
nickwang333 Dec 2, 2021
0b8c98c
Merge pull request #115 from software-students-fall2021/114-enable-ed…
nickwang333 Dec 2, 2021
7e3eb9a
Put test written for save_transaction_data
nickwang333 Dec 2, 2021
07e6435
updated and organized AB frontend
yym1928 Dec 3, 2021
723b9a8
Delete button is written
nickwang333 Dec 3, 2021
e7d0e6e
test written for the post method
nickwang333 Dec 3, 2021
a973e18
Merge pull request #117 from yym1928/15-account-book-main-page
nickwang333 Dec 3, 2021
881d0c9
Change the style to semantic UI
nickwang333 Dec 3, 2021
6c6b109
Merge pull request #118 from software-students-fall2021/120-delete-fu…
nickwang333 Dec 3, 2021
962ecf0
updated charts and frontend ui
yym1928 Dec 3, 2021
158d592
Merge pull request #119 from yym1928/15-account-book-main-page
yym1928 Dec 3, 2021
d5ad5bc
Refined wordcloud
Dec 4, 2021
4cd27b8
Merge pull request #121 from software-students-fall2021/111-diary-wor…
Cirrhosis233 Dec 4, 2021
270e442
updated pie chart data fetch method
yym1928 Dec 4, 2021
ae17b67
Merge pull request #122 from yym1928/15-account-book-main-page
yym1928 Dec 4, 2021
4596ba0
Added tests for summary backend
yym1928 Dec 4, 2021
30046f8
Merge pull request #123 from yym1928/15-account-book-main-page
yym1928 Dec 4, 2021
15fdc42
integrate user authorization with account book functions
YaolinZhang Dec 4, 2021
230d461
Merge pull request #124 from software-students-fall2021/15-account-bo…
YaolinZhang Dec 4, 2021
f6625bc
Merge branch 'software-students-fall2021:15-account-book-main-page' i…
yym1928 Dec 4, 2021
48978a8
summary get data by user information
yym1928 Dec 4, 2021
41a99a0
Merge branch '15-account-book-main-page' of https://github.com/yym192…
yym1928 Dec 4, 2021
62eec6b
implement creation of summmay data
yym1928 Dec 5, 2021
ff9e056
Merge pull request #125 from yym1928/15-account-book-main-page
yym1928 Dec 5, 2021
1a42659
Account book overview completed with user id authentication
nickwang333 Dec 5, 2021
3fee203
delete function completed with user authentication
nickwang333 Dec 5, 2021
c3ad71f
Test passed, and finished
nickwang333 Dec 5, 2021
0110d07
Merge pull request #127 from software-students-fall2021/126-fina-version
Cirrhosis233 Dec 5, 2021
d0143ea
fixed signup page
Dec 5, 2021
6dda062
Merge pull request #130 from software-students-fall2021/128-fix-signup
Cirrhosis233 Dec 5, 2021
5088835
getYear from database
Dec 5, 2021
2b33a8e
diary user identification
Susan0223 Dec 5, 2021
f3439c3
update api name
Dec 5, 2021
c781cee
Merge pull request #131 from software-students-fall2021/diary-login
Cirrhosis233 Dec 5, 2021
77afbf7
Merge pull request #133 from software-students-fall2021/129-getYear-w…
Cirrhosis233 Dec 5, 2021
4d2f2ea
diary refresh issue fixed
Susan0223 Dec 5, 2021
2324b28
Merge pull request #134 from software-students-fall2021/month-select-…
Susan0223 Dec 5, 2021
c0e008d
account book test updated
YaolinZhang Dec 5, 2021
161f5a9
Merge pull request #135 from software-students-fall2021/15-account-bo…
YaolinZhang Dec 5, 2021
cbb4dcc
updated chart colors and tests
yym1928 Dec 5, 2021
b8db547
Merge pull request #136 from yym1928/15-account-book-main-page
yym1928 Dec 5, 2021
9e76b8e
yearList api
Susan0223 Dec 6, 2021
0cea8ba
Merge pull request #137 from software-students-fall2021/yearList-api
Cirrhosis233 Dec 6, 2021
49b4808
diary test fixed
Susan0223 Dec 6, 2021
9f50986
diary test fixed
Susan0223 Dec 6, 2021
8886d1b
Merge pull request #139 from software-students-fall2021/diary-test-issue
Cirrhosis233 Dec 6, 2021
265d4cf
overview api issue fixed
Susan0223 Dec 6, 2021
28ec77f
overview api issue fixed
Susan0223 Dec 6, 2021
bf53728
Merge pull request #140 from software-students-fall2021/overview-issue
Cirrhosis233 Dec 6, 2021
152cec0
miscellaneous category completed, test cases fixed
nickwang333 Dec 6, 2021
ec793af
Merge pull request #141 from software-students-fall2021/122-finalizin…
nickwang333 Dec 6, 2021
ef4d6cc
fixed test and user wordcloud
Dec 6, 2021
c8a0312
yearlist bug fixed
Susan0223 Dec 6, 2021
331f9c1
Merge pull request #142 from software-students-fall2021/yearlist-fix
Cirrhosis233 Dec 6, 2021
caae079
Merge branch 'master' into 138-fix-wordcloud-user
Cirrhosis233 Dec 6, 2021
98e0375
Merge pull request #143 from software-students-fall2021/138-fix-wordc…
Cirrhosis233 Dec 6, 2021
0c9c293
test deploy
Dec 6, 2021
6ebfe3d
change proxy
Dec 6, 2021
9afcced
Merge pull request #149 from software-students-fall2021/0-deploy
Cirrhosis233 Dec 6, 2021
5277649
update link to live url
Dec 6, 2021
d7b1f6e
Merge pull request #150 from software-students-fall2021/0-deploy
Cirrhosis233 Dec 6, 2021
8f8f6fc
Update README.md
Cirrhosis233 Dec 6, 2021
970cb07
Merge pull request #151 from software-students-fall2021/Cirrhosis233-…
Cirrhosis233 Dec 6, 2021
5098f98
diary footer added and apiUrl fixed
Susan0223 Dec 6, 2021
4eff415
test file fixed
Susan0223 Dec 6, 2021
822f194
update backend routing
yym1928 Dec 6, 2021
aba75c8
Merge pull request #154 from yym1928/master
yym1928 Dec 6, 2021
7231cb5
Merge pull request #153 from software-students-fall2021/diary-footer
yym1928 Dec 6, 2021
becb285
155-update-transaction-routing
nickwang333 Dec 6, 2021
9572d52
Merge pull request #156 from software-students-fall2021/155-update-tr…
nickwang333 Dec 6, 2021
20b25d5
fix bug for recent transaction
YaolinZhang Dec 6, 2021
80b818a
fix bug for Add.js
YaolinZhang Dec 6, 2021
fab7ba2
fix bug for summary
YaolinZhang Dec 6, 2021
2b522bd
fix bug for monthly budget
YaolinZhang Dec 6, 2021
81c30e8
fix bug for most recent transaction
YaolinZhang Dec 6, 2021
0cc943e
Merge pull request #157 from software-students-fall2021/15-account-bo…
YaolinZhang Dec 6, 2021
1572411
fix bug for account book page 3
YaolinZhang Dec 6, 2021
9ad5aea
Merge pull request #158 from software-students-fall2021/15-account-bo…
YaolinZhang Dec 6, 2021
a04e9ce
add loading to wordcloud
Dec 6, 2021
606354f
Merge pull request #159 from software-students-fall2021/diary
Cirrhosis233 Dec 6, 2021
20c5545
after user added a transaction, now the recent transaction automatica…
YaolinZhang Dec 6, 2021
b692a14
Merge pull request #160 from software-students-fall2021/15-account-bo…
YaolinZhang Dec 6, 2021
7a41670
speed optimization
Susan0223 Dec 6, 2021
19b510a
diary speed optimization
Susan0223 Dec 6, 2021
bece057
Merge pull request #162 from software-students-fall2021/diary-optimiz…
Cirrhosis233 Dec 6, 2021
e584bed
diary style optimization
Susan0223 Dec 7, 2021
066f65c
Merge pull request #163 from software-students-fall2021/diary-optimiz…
Cirrhosis233 Dec 7, 2021
92c55e6
updated account book ui
yym1928 Dec 8, 2021
7f254dc
Merge pull request #164 from yym1928/master
yym1928 Dec 8, 2021
319a232
fix
Dec 8, 2021
0e102de
Merge pull request #165 from software-students-fall2021/fix
Cirrhosis233 Dec 8, 2021
1318ed3
updated AB page for new users
yym1928 Dec 8, 2021
2c5ab72
Update transaction page UI
nickwang333 Dec 8, 2021
46f03b8
Merge branch 'master' into master
yym1928 Dec 8, 2021
2f7a8fd
Merge pull request #166 from yym1928/master
yym1928 Dec 8, 2021
f355b5f
Resolve conflict
nickwang333 Dec 8, 2021
5ad28e2
Merge branch 'master' into 138-update-transaction-page-ui
Cirrhosis233 Dec 8, 2021
7e25b5c
Merge pull request #167 from software-students-fall2021/138-update-tr…
Cirrhosis233 Dec 8, 2021
ccb26e6
diary bug fixed and optimization
Susan0223 Dec 9, 2021
7cb18ce
diary bug fixed and optimization login
Susan0223 Dec 9, 2021
2e9efee
Merge pull request #168 from software-students-fall2021/diary-optimiz…
Cirrhosis233 Dec 10, 2021
594c76c
optimization
Susan0223 Dec 11, 2021
32bd7df
diary opt
Susan0223 Dec 11, 2021
0325149
Merge pull request #171 from software-students-fall2021/diary-optimiz…
Cirrhosis233 Dec 11, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Use the latest 2.1 version of CircleCI pipeline process engine.
# See: https://circleci.com/docs/2.0/configuration-reference
version: 2.1

# Define the jobs we want to run for this project
jobs:
build-and-test-express-js:
docker:
- image: cimg/node:16.13.0 # latest stable node at the time of writing
# auth:
# username: mydockerhub-user
# password: $DOCKERHUB_PASSWORD # context / project UI env-var reference
steps:
- checkout
- run: echo "this is the build and test express.js job"
- run: |
cd back-end
pwd # for debugging: show current working directory
ls # for debugging: show sub-directories in here
- run: |
cd back-end
npm install # install all dependencies listed in package.json
npm test # run all unit tests
build-react-js:
docker:
- image: cimg/node:16.13.0 # latest stable node at the time of writing
# auth:
# username: mydockerhub-user
# password: $DOCKERHUB_PASSWORD # context / project UI env-var reference
steps:
- checkout
- run: echo "this is the build react.js job"
- run: |
cd back-end
pwd # for debugging: show current working directory
ls # for debugging: show sub-directories in here
- run: |
cd front-end
npm install # install all dependencies listed in package.json
npm run build # have react build the stand-alone front-end code

# Orchestrate our job run sequence
workflows:
build-and-test-back-end:
jobs:
- build-and-test-express-js
build-front-end:
jobs:
- build-react-js
30 changes: 28 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,28 @@
# Guide to Contributing
Delete the contents of this file and replace with the contents of a proper guide to contributing to this project, as described in the [instructions](./instructions.md)
### Team Values:
* Tasks are assigned on a weekly base. Everyone is supposed to complete their work on time.
* When one team member encounters problems or obstacles, others should help.
* When a conflict occurs, we will vote. And we wil choose the plan which majority agree on.
* If a group member misses deadline once, a warning will be given. If memeber misses 3 deadlines, we will report.
* Respond to directed messages within a day

### Sprint Cadence
* 2 weeks/sprint, each sprint the whole team should contribute approximate 25 hours/week

### Daily Standup
* 2 standups of 15 mins: Tuesday evening, Friday evening
* Members expected to be present synchronously

### Coding standards
* Use VScode.
* Always push working code, if you break the pipeline/build then fix it.
* Provide descriptive commit messages.
* Write self documenting code. Use descriptive variable and function names. Avoid unnecessary name shortening

## Git Workflow
* Decentralized

## Instructions for setting up the local development environment in order to work on this project
TBD

## Instructions for building and testing the project
TBD
26 changes: 17 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
# Project Repository
# Life Note

This repository will be used for team projects.
# Live URL
http://162.243.168.215:3000/
# Description of project
The project Life Notes is a web app the helps people to take four main types of records of their life altogether in one app, and also provides visualization and some intelligence features.

Several sets of instructions are included in this repository. They should each be treated as separate assignments with their own due dates and sets of requirements.
The minimum viable product would be a app that enables user to write their diaries and record their transactions. Additional features in diaries enable users to tag their diaries, and generate the most frequently used tags. For the part of account book, additional features include allowing users to search for their transactions, generating a chart pies based on the users' spendings, and sorting the spendings based on dates or amounts.

1. Delete the contents of this file and replace with the contents of a proper README.md, as described in the [project setup instructions](./instructions-1a-project-setup.md)
# Core team members
[Zhuofeng Wang](https://github.com/zw2922), [Yaolin Zhang](https://github.com/YaolinZhang), [Tianle Ye](https://github.com/Cirrhosis233), [Susan Liu](https://github.com/Susan0223), [Yiming Yu](https://github.com/yym1928)

1. See the [Sprint Planning instructions](instructions-1b-sprint-planning.md) for the requirements of Sprint Planning for each Sprint.
# History of the Lifenote
[Link to the contributing.md](https://github.com/software-students-fall2021/project-setup-nick-wang/blob/master/CONTRIBUTING.md)

1. See the [Front-End Development instructions](./instructions-2-front-end.md) for the requirements of the initial Front-End Development.
It's kind of too tedious to have so many different apps to manage in our life. Therefore, we had this idea to create an app to merge things like diary and account book into one.
The project idea was proposed for the class Software Engineering in September 2021.

1. See the [Back-End Development instructions](./instructions-3-back-end.md) for the requirements of the initial Back-End Development.
# Instructions for building and testing the project

1. See the [Database Integration instructions](./instructions-4-database.md) for the requirements of integrating a database into the back-end.

1. See the [Deployment instructions](./instructions-5-deployment.md) for the requirements of deploying an app.
# Links to any additional Markdown documents
[Reading about how to build an online account book](https://vilmate.com/blog/how-to-create-accounting-custom-software)

# Other important things
24 changes: 24 additions & 0 deletions back-end/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"env": {
"browser": true,
"javaScript": true,
"es2021": true
},
"extends": [
"plugin:react/recommended",
"airbnb",
"prettier"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 13
},
"plugins": [
"react",
"prettier"
],
"rules": {
}
}
5 changes: 5 additions & 0 deletions back-end/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"trailingComma": "es5",
"printWidth": 100,
"singleQuote": true
}
35 changes: 35 additions & 0 deletions back-end/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# LifeNote Back End

### Contribution:

Letian Ye: Basic framework and database setup, DiaryOverview(WordCloud), User Authentication

Zhuofeng Wang: Account Book transaction page's GET and PUT request, Test For Account Book transaction

Susan Liu: Diary Detail GET and PUT request - Detail.js , GET and PUT test file - DetailService.spec.js

Yiming Yu: AccountBook summary charts, GET and PUT request for monthly budget value, and the corresponding test file.

Yaolin Zhang: Account Book Main page's searching and adding functions - app.js. Get and Post unit test - AccBookMainTest.spec.js

Product Owner: Yaolin Zhang

Scrum Master: Yiming Yu

# LifeNote DataBase

### Contribution:

Letian Ye:

Zhuofeng Wang:

Susan Liu:

Yiming Yu:

Yaolin Zhang:

Product Owner: Yiming Yu

Scrum Master: Zhuofeng Wang
162 changes: 162 additions & 0 deletions back-end/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
const express = require("express"); // CommonJS import style!
const app = express(); // instantiate an Express object
const path = require("path");
require("dotenv").config({ silent: true }); // Load env variables

// BodyParser
var bodyParser = require("body-parser");
app.use(
bodyParser.urlencoded({
extended: true,
})
);
app.use(bodyParser.json());

// import some useful middleware
const multer = require("multer"); // middleware to handle HTTP POST requests with file uploads
const axios = require("axios"); // middleware for making requests to APIs
require("dotenv").config({ silent: true }); // load environmental variables from a hidden file named .env
const morgan = require("morgan");
// require cors
const cors = require("cors")
// require passport
const passport = require("passport")

// use the morgan middleware to log all incoming http requests
app.use(morgan("dev")); // morgan has a few logging default styles - dev is a nice concise color-coded style
// use express's builtin body-parser middleware to parse any data included in a request
app.use(express.json()); // decode JSON-formatted incoming POST data
app.use(express.urlencoded({ extended: true })); // decode url-encoded incoming POST data
// make 'public' directory publicly readable with static content
app.use("/static", express.static("public"));
// use cors
app.use(cors())
// use passport
app.use(passport.initialize())

//Database
require('dotenv').config()
const mongoose = require("mongoose");
mongoose.connect(process.env.DB_URL);

// listens for any HTTP GET request for the / path,
// and responds with the plain text, 'Hello!'
// Api
const diaryWordCloudRouter = require("./routes/Diary/Overview")
const diaryDetailRouter = require("./routes/Diary/Detail")
const accountSummaryRouter = require("./routes/Accountbook/Summary")
const transactionRouter = require("./routes/Account_book_trancsaction/transaction_display");
const internal = require("stream");

// ==============================================================
// Users function
app.use("/users", require("./routes/users"));

// router for HTTP GET requests to the root document
app.use("/", diaryWordCloudRouter);

app.use("/", diaryDetailRouter)

app.use("/", accountSummaryRouter)

app.use("/", transactionRouter)

// Test
app.get("/", (req, res) => {
res.send("Hello world!");
});

// database for accout book main page
const db = mongoose.connection;
db.on('error', console.error.bind(console, 'connection error:!!!'));
db.once('open', function() {
// we're connected!
console.log("hi database conntected")
});

const transactionSchema = new mongoose.Schema({
username: String,
name: String,
date: Date,
amount: Number,
type: String
});

const Transaction = mongoose.model('Transactions', transactionSchema);

let userNameForSearch;
// get recent transactions from db and sent them back to front-end
app.post("/recent-trsc", (req, res) => {
userNameForSearch = req.body.username
console.log("user in the backend: " +req.body.username)
console.log(JSON.stringify(req.body, null, 2))

Transaction.find({username: req.body.username}, (err, docs) => {
if(err) return console.error(err);

console.log(docs.length)

if (docs.length > 5)
{
console.log(docs[docs.length-1])
res.json([docs[docs.length-1], docs[docs.length-2], docs[docs.length-3],
docs[docs.length-4], docs[docs.length-5]])
}
else
res.json(docs);
})
})

app.get("/transaction_data", (req, res) => {
Transaction.find({}, (err, docs) => {
if(err) return console.error(err);
res.json(docs);
})
})

// search transaction function; post from client
app.post("/post-search", (req, res) => {
console.log(JSON.stringify(req.body, null, 2))

Transaction.find({name: req.body.search, username:userNameForSearch}, (err, result)=>{
if(err) return console.error(err);
if(result.length === 0){
res.json([])
}
else{
console.log(result)
res.json(result);
}
})

})

// add transaction function; post from client
app.post("/post-add", (req, res) => {
console.log(`post data: ${JSON.stringify(req.body, null, 2)}`)

const today = new Date()
const newTrsc = new Transaction ({
//username added
username: req.body.username,
name: req.body.trscName,
date: today,
amount: req.body.trscAmount,
type: req.body.trscType,
})

console.log(newTrsc)
newTrsc.save().then(() => console.log("new transaction added"))
//res.json(data)
res.send();
})

// proxy requests to/from an API
app.get("/proxy-example", (req, res, next) => {
// use axios to make a request to an API for animal data
axios
.get("http://localhost:9000/post-search")
.then(apiResponse => res.json(apiResponse.data)) // pass data along directly to client
.catch(err => next(err)) // pass any errors to express
})
module.exports = app
9 changes: 9 additions & 0 deletions back-end/models/detail.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const mongoose = require('mongoose');

const diarySchema = new mongoose.Schema({
username: String,
date: String,
content: String
});

module.exports = mongoose.model('Diary', diarySchema);
9 changes: 9 additions & 0 deletions back-end/models/summary.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const mongoose = require('mongoose');

const summarySchema = new mongoose.Schema({
userID: String,
username: String,
monthlyLimit: Number
});

module.exports = mongoose.model('Summary', summarySchema);
12 changes: 12 additions & 0 deletions back-end/models/transaction.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const mongoose = require('mongoose');

const transactionsSchema = new mongoose.Schema({
userID: String,
username: String,
name: String,
date: Date,
amount: Number,
type: String
});

module.exports = mongoose.model('transactions', transactionsSchema);
Loading