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

Chloe #130 fix edit post db calls includes the fields it needs #73

Open
wants to merge 287 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
287 commits
Select commit Hold shift + click to select a range
ae073b3
removed redundant console log, added error printout
Satokii Feb 7, 2024
497ab9b
Merge pull request #12 from boolean-uk/11-change-status-code-to-409-w…
Satokii Feb 7, 2024
2fa02f5
feat: amend getAll() to take name query
EwbiDev Feb 7, 2024
a8b4b60
feat: amend getAll() to take name query
EwbiDev Feb 7, 2024
59ff539
build: install morgan express middleware
EwbiDev Feb 7, 2024
11ce781
Merge branch '4-amend-getall-user-controller-to-accept-string-contain…
Faiza-tech Feb 7, 2024
40834b9
need to solve
Faiza-tech Feb 7, 2024
8f60a6f
Merge pull request #14 from boolean-uk/13-add-morgan-express-middleware
EwbiDev Feb 7, 2024
1126277
Merge branch 'main' into 4-amend-getall-user-controller-to-accept-str…
EwbiDev Feb 7, 2024
83fa968
added new router
Callumhayden99 Feb 8, 2024
0fe1b8b
Add Comment model and likes for post
NazarTymiv Feb 8, 2024
5384e41
Add fields to the comment and relation with user
NazarTymiv Feb 8, 2024
6cabc5f
deleting post has been added to the controller and domain file
Callumhayden99 Feb 8, 2024
06797ae
Merge pull request #18 from boolean-uk/NazarTymiv-17-comments-model-f…
NazarTymiv Feb 8, 2024
aa2830e
fix: amend method to return User instance
EwbiDev Feb 8, 2024
29e3f85
fix: amend method input to be case insensitive
EwbiDev Feb 8, 2024
eed1ae9
refactor: remove namePart set
EwbiDev Feb 8, 2024
0120c1b
Add new model Like and relation with userId and postId
NazarTymiv Feb 8, 2024
1f51b30
Merge pull request #22 from boolean-uk/NazarTymiv-20-create-new-model…
NazarTymiv Feb 8, 2024
c42c1a5
feat: endpoint returns userList sorted by result count
EwbiDev Feb 8, 2024
b10e010
delete function working, just need to fix the refresh issue
Callumhayden99 Feb 8, 2024
7ff0b4e
refactor: extract or query
EwbiDev Feb 8, 2024
e9d9206
refactor: relocate controller logic to domain
EwbiDev Feb 8, 2024
c2cadae
refactor: move controller logic to domain
EwbiDev Feb 8, 2024
120dba3
created the edit post button, just need to work on client side now to…
Callumhayden99 Feb 8, 2024
cc2ae80
docs: update docs
EwbiDev Feb 8, 2024
48e8ebd
edit and delete server side is fully working
Callumhayden99 Feb 8, 2024
1b0e86d
fully refactored code to meet review requirements
Callumhayden99 Feb 8, 2024
200f74c
fix: add guard clause
EwbiDev Feb 8, 2024
f616fb4
refactor: relocate query options
EwbiDev Feb 8, 2024
190d5cf
feat: GET/posts route: posts include comments and likes
Chloe070196 Feb 8, 2024
00f3aa5
Merge pull request #19 from boolean-uk/15-fix-userfindmanybyfirstname…
EwbiDev Feb 8, 2024
50be933
Merge pull request #23 from boolean-uk/4-amend-getall-user-controller…
EwbiDev Feb 8, 2024
a6a818b
build: add comments and likes to posts in seed
Chloe070196 Feb 8, 2024
aa89ce2
docs: update .yml to reflect changes
Chloe070196 Feb 8, 2024
08eec8f
more chanages to the requirements made
Callumhayden99 Feb 8, 2024
7f84998
Merge branch 'main' into Callumhayden99-16-delete-put-endpoints-for-p…
Callumhayden99 Feb 8, 2024
ed2903c
Merge pull request #24 from boolean-uk/Callumhayden99-16-delete-put-e…
Callumhayden99 Feb 8, 2024
9310fb2
fix: handle case where no query param in request
EwbiDev Feb 8, 2024
0c729db
refactor: add curly brackets
EwbiDev Feb 8, 2024
dba9f82
Merge pull request #30 from boolean-uk/29-get-users-crashes-server-wh…
EwbiDev Feb 8, 2024
e59c763
docs: add missing properties to Posts schema
Chloe070196 Feb 8, 2024
58bd999
fix: remove redundancies
Chloe070196 Feb 8, 2024
3d5a5b9
Merge pull request #28 from boolean-uk/25-getposts-route-comments-and…
Chloe070196 Feb 8, 2024
3b69577
added the put to the docs, just need to add the delete one and place …
Callumhayden99 Feb 8, 2024
bb5b612
updated the .yml files for the put and delete functions
Callumhayden99 Feb 9, 2024
d4a0075
Merge pull request #35 from boolean-uk/31-api-docs-update-the-documen…
Callumhayden99 Feb 9, 2024
cacf71a
Comment, Like and Post models created / updated
LAVINIABENZAR Feb 9, 2024
de29ad8
Merge pull request #36 from boolean-uk/34-fix-required-re-insert-a-co…
LAVINIABENZAR Feb 9, 2024
964f087
created a new router, controller and domain file for the like function
Callumhayden99 Feb 9, 2024
c1dfa56
updated the code to meet review requirements
Callumhayden99 Feb 9, 2024
7fc4771
get endpoint for comments
LAVINIABENZAR Feb 9, 2024
f5a10b4
Add new router /comments
NazarTymiv Feb 9, 2024
72ecc3f
Add comments controller
NazarTymiv Feb 9, 2024
3f07434
Update global error handler
NazarTymiv Feb 9, 2024
89a64db
Add global error handler
NazarTymiv Feb 9, 2024
c90916f
Add checkFields error handler
NazarTymiv Feb 9, 2024
9131cc7
Add createCommentDb
NazarTymiv Feb 9, 2024
62a8660
Add comment controller createComment
NazarTymiv Feb 9, 2024
839eaa3
Fix problem in domain comments file
NazarTymiv Feb 9, 2024
0a1bdde
Add validate authentication
NazarTymiv Feb 9, 2024
6f8bc7d
prettier fix
LAVINIABENZAR Feb 11, 2024
d864860
Delete console log in comments controller
NazarTymiv Feb 12, 2024
bd88f99
Update checkFields function
NazarTymiv Feb 12, 2024
12be069
Merge pull request #43 from boolean-uk/NazarTymiv-42-post-endpoint-fo…
NazarTymiv Feb 12, 2024
ac2ecc7
Merge pull request #38 from boolean-uk/Callumhayden99-37-updating-the…
NazarTymiv Feb 12, 2024
23230e2
Fix issue with likes
NazarTymiv Feb 12, 2024
33d501e
Merge pull request #45 from boolean-uk/NazarTymiv-44-fix-issue-with-r…
NazarTymiv Feb 12, 2024
f1476ce
refactor: use class
Chloe070196 Feb 12, 2024
2678fb7
Merge branch 'main' into loredana-benzar-40-get-comments-endpoint
Chloe070196 Feb 12, 2024
0cdb269
refactor: getALl returns class instances
Chloe070196 Feb 12, 2024
008586a
name property added to cohort model and the seed.js file
LAVINIABENZAR Feb 12, 2024
dbcae44
docs: add comments get endpoint
Chloe070196 Feb 12, 2024
edcfc04
chore: remove console.log
Chloe070196 Feb 12, 2024
1f63920
Merge pull request #41 from boolean-uk/loredana-benzar-40-get-comment…
Chloe070196 Feb 12, 2024
72bf126
updated api docs
LAVINIABENZAR Feb 12, 2024
474b01a
docs: add post comment endpoint
Chloe070196 Feb 12, 2024
28198e2
refactor: delete redundant comments.js files
Chloe070196 Feb 12, 2024
a75aa49
refactor: delete redundant router
Chloe070196 Feb 12, 2024
41b6437
refactor: move post route to comment.js
Chloe070196 Feb 12, 2024
280218b
refactor: rewrite createCommentDb() as class method save()
Chloe070196 Feb 12, 2024
388dc25
refactor: rewrite createComment() to use Comment class methods
Chloe070196 Feb 12, 2024
c130d2a
chore: remove console.log
Chloe070196 Feb 12, 2024
55d1fe5
Merge pull request #49 from boolean-uk/Chole070196-#48-comments-endpo…
Chloe070196 Feb 12, 2024
ea695f2
...
ilham-saleh Feb 13, 2024
4e0357d
new route and controller function
extra-jalapenos Feb 13, 2024
9aaf0b8
fix: set default values for firstName and lastName profile properties
Chloe070196 Feb 13, 2024
5c64dfe
Merge pull request #47 from boolean-uk/loredana-benzar-46-name-proper…
LAVINIABENZAR Feb 13, 2024
43f88f1
Merge pull request #52 from boolean-uk/Chloe-#51-user-when-an-instanc…
Chloe070196 Feb 13, 2024
a99a317
build: add onDelete: Cascade to post field on comment
Chloe070196 Feb 13, 2024
6799229
build: generate migrations for cascade on delete
Chloe070196 Feb 13, 2024
9925ce0
Merge pull request #56 from boolean-uk/Chloe-#55-fix-dashboard-posts-…
Chloe070196 Feb 13, 2024
136316d
replace "message" with "error" when sending errors to front end
ilham-saleh Feb 13, 2024
29f210e
Merge pull request #57 from boolean-uk/39-inputs-validation
ilham-saleh Feb 13, 2024
6d91fb5
Add new route /comments/:postId
NazarTymiv Feb 14, 2024
8ed5465
Add new error hadler checkPostExist
NazarTymiv Feb 14, 2024
522383e
Add new function getcommentsByPostId
NazarTymiv Feb 14, 2024
418da3d
Add new controller getcommentsByPost
NazarTymiv Feb 14, 2024
aeef94c
Fix check post exist error handler
NazarTymiv Feb 14, 2024
621bcb8
Add validate authentication
NazarTymiv Feb 14, 2024
c38dfae
prisma migrate
NazarTymiv Feb 14, 2024
19ca431
Remove comments from getPosts function
NazarTymiv Feb 14, 2024
061d609
docs: add GET/cohorts endpoint
Chloe070196 Feb 14, 2024
64a093c
feat: add GET/cohorts router
Chloe070196 Feb 14, 2024
6c6f013
feat: add GET/cohorts controller
Chloe070196 Feb 14, 2024
8df2805
feat: add GET/cohorts domain - update Cohort class
Chloe070196 Feb 14, 2024
078c779
feat: add console.log() for error
Chloe070196 Feb 14, 2024
c879d44
Merge pull request #54 from boolean-uk/50-add-new-route-for-usersme
extra-jalapenos Feb 14, 2024
dffe96f
Merge pull request #62 from boolean-uk/Chloe-#60-cohort-get-endpoint-…
Chloe070196 Feb 14, 2024
aa0ee59
updated the schema and seed file, so we can add roles for the teachers
Callumhayden99 Feb 14, 2024
d05e443
Merge pull request #64 from boolean-uk/Callumhayden99-61-adding-teach…
Callumhayden99 Feb 14, 2024
4e3ecb4
Update docs file
NazarTymiv Feb 14, 2024
70c8763
Remove migration
NazarTymiv Feb 14, 2024
083dfb7
Change domain file for class
NazarTymiv Feb 14, 2024
d126bf3
emove all comments
NazarTymiv Feb 14, 2024
1efd374
Merge pull request #59 from boolean-uk/NazarTymiv-58-get-comments-by-…
NazarTymiv Feb 14, 2024
963b0ab
updated status code for incorrect login details
Satokii Feb 14, 2024
7badb53
Merge pull request #67 from boolean-uk/66-incorrect-status-code-for-i…
Satokii Feb 14, 2024
9887ec1
build: add department model to schema
Chloe070196 Feb 14, 2024
bccf78c
build: update seed to account for departments
Chloe070196 Feb 14, 2024
ac5af73
feat: update GET/cohorts routes to include department name
Chloe070196 Feb 14, 2024
f8833b0
feat: update api docs to reflect changes
Chloe070196 Feb 14, 2024
a5ec0c2
chore: remove redundant check
Chloe070196 Feb 14, 2024
66d85f1
feat: add default department name
Chloe070196 Feb 14, 2024
5c99e91
add prisma error check in create user funct
Satokii Feb 14, 2024
b26c559
merge from main
Chloe070196 Feb 14, 2024
8aefa67
Merge pull request #71 from boolean-uk/Chloe-#63-schema-add-departmen…
Chloe070196 Feb 14, 2024
885c56a
Merge pull request #70 from boolean-uk/69-check-for-prisma-errors-in-…
Satokii Feb 14, 2024
2c5ec7c
checking the errosr
ilham-saleh Feb 15, 2024
a056aaa
Merge pull request #73 from boolean-uk/72-login-bug
Auenc Feb 15, 2024
6c752e5
student model added
LAVINIABENZAR Feb 15, 2024
28bb008
Merge pull request #77 from boolean-uk/loredana-benzar-74-add-student…
LAVINIABENZAR Feb 15, 2024
d7ccfa4
Profile prisma schema model modified
ilham-saleh Feb 15, 2024
3197d22
Avoid returning user password to front end
ilham-saleh Feb 15, 2024
79844cb
update apidocs
ilham-saleh Feb 16, 2024
7e6245b
Merge pull request #78 from boolean-uk/75-modify-prisma-profile-model
ilham-saleh Feb 16, 2024
27eee81
add new route to /cohorts
yee0802 Feb 16, 2024
885b6e5
add getStudentsByCohortId controller
yee0802 Feb 16, 2024
e80971c
add Student class
yee0802 Feb 16, 2024
b8e1d31
fix: fromDb and fromJSON return correct data structure
Chloe070196 Feb 16, 2024
e3370d3
update console.log error message
yee0802 Feb 16, 2024
5ae6b96
fix: add department property to cohort
Chloe070196 Feb 16, 2024
e34b98a
docs: add missing property on cohorts
Chloe070196 Feb 16, 2024
def3c45
Merge pull request #81 from boolean-uk/76-add-student-class
LAVINIABENZAR Feb 16, 2024
b5c010c
Merge pull request #82 from boolean-uk/Chloe-#80-fix-fromdb-in-src-do…
Chloe070196 Feb 16, 2024
b4e85d7
feat: JWT payload now includes user role
Chloe070196 Feb 16, 2024
20a844e
Add teachers route
NazarTymiv Feb 17, 2024
8fa5687
Add get all teachers controller
NazarTymiv Feb 17, 2024
e67067f
Add domain teachers and new function get all teachers
NazarTymiv Feb 17, 2024
52e05b8
Add get all teachers controller
NazarTymiv Feb 17, 2024
b0322e9
Update seed file
NazarTymiv Feb 17, 2024
bc7b8d7
Add validate token
NazarTymiv Feb 17, 2024
a7dd5e8
Update domain file of teacehrs
NazarTymiv Feb 18, 2024
d427ce2
update controller to match updated domain
yee0802 Feb 19, 2024
b5c7317
Merge pull request #91 from boolean-uk/90-fix-update-controller-to-ma…
yee0802 Feb 19, 2024
80a9714
Merge pull request #85 from boolean-uk/Chloe-84-jwt-add-userrole-to-p…
Chloe070196 Feb 19, 2024
f8a2e39
Update docs file
NazarTymiv Feb 19, 2024
a9625ff
Merge pull request #87 from boolean-uk/NazarTymiv-86-list-of-teachers
NazarTymiv Feb 19, 2024
3c036de
update getSelf response to { data: req.user }
yee0802 Feb 19, 2024
a9f9d6e
Merge pull request #94 from boolean-uk/93-update-getself-controller
yee0802 Feb 19, 2024
f13ea9b
get endpoint for students
LAVINIABENZAR Feb 19, 2024
446fbe4
fix linting errors
LAVINIABENZAR Feb 19, 2024
ce8d2fc
updated openapi.yml file
LAVINIABENZAR Feb 19, 2024
c9fe75c
updated openapi.yml file
LAVINIABENZAR Feb 19, 2024
96bc80a
feat: add GET/teachers/:id route
Chloe070196 Feb 19, 2024
f05bf52
feat: add getTeacher() controller
Chloe070196 Feb 19, 2024
079778d
feat: add getTeacherBy() and _findUnique() to class Teacher
Chloe070196 Feb 19, 2024
fb49d3e
docs: add GET/teachers/:id route
Chloe070196 Feb 19, 2024
c1f0cf6
Merge pull request #98 from boolean-uk/Chloe-#97-getteachersid-add-ne…
Chloe070196 Feb 20, 2024
18e780c
Merge branch 'main' into loredana-benzar-95-get-endpoint-for-students
LAVINIABENZAR Feb 20, 2024
ec7b9ba
openapi.yml updated again
LAVINIABENZAR Feb 20, 2024
620d091
Merge pull request #96 from boolean-uk/loredana-benzar-95-get-endpoin…
LAVINIABENZAR Feb 20, 2024
7a6fd47
created new router, controller and domain file that will allow the te…
Callumhayden99 Feb 20, 2024
42b2060
slight change to meet requirements
Callumhayden99 Feb 20, 2024
6b4400e
Merge pull request #100 from boolean-uk/88-handle-request-to-move-stu…
Callumhayden99 Feb 20, 2024
52f20bc
mistakes corrected
LAVINIABENZAR Feb 20, 2024
2ea8bd6
Merge pull request #102 from boolean-uk/101-indentation-problem-on-op…
LAVINIABENZAR Feb 20, 2024
03e880f
add _findManyWhere to Teacher class
yee0802 Feb 20, 2024
875d3b8
Merge pull request #105 from boolean-uk/104-add-_findmanywhere-to-tea…
yee0802 Feb 20, 2024
18977c8
add PUT req route for user router
Satokii Feb 20, 2024
1fd9766
feat: route GET/teachers/me
Chloe070196 Feb 20, 2024
12509df
feat: getSelf() - teacher
Chloe070196 Feb 20, 2024
6ed2f28
feat: findByUserId - teacher
Chloe070196 Feb 20, 2024
7c3fd40
feat: route GET/students/me
Chloe070196 Feb 20, 2024
df80636
feat: getSelf() - student
Chloe070196 Feb 20, 2024
9b9d7c2
feat: findByUserId - student
Chloe070196 Feb 20, 2024
0f9e9bf
feat: set req.teacher or req.student+ add validateStudentRole
Chloe070196 Feb 20, 2024
ed9f873
Move errorCreator in own file in helpers
NazarTymiv Feb 20, 2024
ad67d0a
docs: add GET/teachers/ma and GET/students/me
Chloe070196 Feb 20, 2024
1003083
feat: GET/students/me includes cohort name and dep id
Chloe070196 Feb 20, 2024
4a8fae4
updated profile prisma schema model
Satokii Feb 20, 2024
a97dcae
feat: teacher route: include department and its name
Chloe070196 Feb 20, 2024
f6adff1
fix: re-order routes
Chloe070196 Feb 20, 2024
2ed1914
Merge branch 'main' into Chloe-#103-getstudentsme-and-getteachersme-r…
Chloe070196 Feb 20, 2024
277d6ad
Merge pull request #110 from boolean-uk/Chloe-#103-getstudentsme-and-…
Chloe070196 Feb 20, 2024
4074b1b
feat: add note model
EwbiDev Feb 20, 2024
f999f70
chore: add note seed data
EwbiDev Feb 20, 2024
aa9187f
updated user controller and domain to handle profile update req
Satokii Feb 20, 2024
3fcf670
Merge pull request #111 from boolean-uk/108-add-notes-schema
EwbiDev Feb 20, 2024
b5f6051
fix: contructor: arguments passed in correct order
Chloe070196 Feb 20, 2024
643a63a
Add new middleware postError and new function post exist
NazarTymiv Feb 21, 2024
d313c8b
Add new error handler check owner of the post
NazarTymiv Feb 21, 2024
8c603f2
Refactor post domain and controller files
NazarTymiv Feb 21, 2024
2e7af35
Update likes schema for cascade deleting
NazarTymiv Feb 21, 2024
cd7114b
Add migration for last changes
NazarTymiv Feb 21, 2024
e50049b
Delete all console logs
NazarTymiv Feb 21, 2024
5174507
Merge branch 'main' into NazarTymiv-106-teacher-can-delete-any-posts
NazarTymiv Feb 21, 2024
892f5b3
Merge pull request #115 from boolean-uk/ChloeWhoTakesNoCredit-#113-bu…
Chloe070196 Feb 21, 2024
efb95d2
feat: add Note class
EwbiDev Feb 21, 2024
8614aa2
Update docs file
NazarTymiv Feb 21, 2024
5250fbb
feat: implement createNote controller
EwbiDev Feb 21, 2024
35ee7a1
feat: implement post /notes route
EwbiDev Feb 21, 2024
258daa8
fix: correct http error code
EwbiDev Feb 21, 2024
7bcd74c
docs: add POST /notes
EwbiDev Feb 21, 2024
a3f88ce
added error handling
Satokii Feb 21, 2024
46c8e88
fix: ensure postId is a number
Chloe070196 Feb 21, 2024
93978cb
fix: comments include firstName and lastName of their author
Chloe070196 Feb 21, 2024
ebacbef
docs: update comment schema
Chloe070196 Feb 21, 2024
2be6484
Merge pull request #116 from boolean-uk/112-create-notes-domain
EwbiDev Feb 21, 2024
ec42f5c
Merge pull request #118 from boolean-uk/117-implement-post-notes-rout…
EwbiDev Feb 21, 2024
f76d828
docs: amend comment schema
Chloe070196 Feb 21, 2024
d626938
Merge branch 'main' of github.com:boolean-uk/team-dev-server-c11 into…
Satokii Feb 21, 2024
7555b5d
Refactor middleware of postErrors
NazarTymiv Feb 21, 2024
b08a05a
Merge branch 'main' into NazarTymiv-106-teacher-can-delete-any-posts
NazarTymiv Feb 21, 2024
819f39e
Merge pull request #120 from boolean-uk/Chloe-#119-fix-getcommentspos…
Chloe070196 Feb 22, 2024
baaa441
update fields from 'unknown' to null
Satokii Feb 22, 2024
61006c2
updated the docs
Callumhayden99 Feb 22, 2024
0b390dc
Merge pull request #122 from boolean-uk/88-handle-request-to-move-stu…
Callumhayden99 Feb 22, 2024
2d50d28
update api docs with new PUT request
Satokii Feb 22, 2024
4aa46ca
Merge pull request #107 from boolean-uk/NazarTymiv-106-teacher-can-de…
NazarTymiv Feb 22, 2024
284cc9c
remove null from firstName
Satokii Feb 22, 2024
b553a45
fix merge conflict
Satokii Feb 22, 2024
e451643
removed nullable fields
Satokii Feb 22, 2024
55c4bbe
Merge pull request #121 from boolean-uk/83-save-new-profile-to-db
Satokii Feb 22, 2024
13eb6b8
build: enum Role has a TBA value
Chloe070196 Feb 22, 2024
19fc1a9
build: migration for adding 'tba' to enum Role
Chloe070196 Feb 22, 2024
56884f7
add path to get user profile
Satokii Feb 22, 2024
758f12c
fix: change default value for this.role to 'TBA'
Chloe070196 Feb 22, 2024
affca5a
feat: findByUserId() throws an error if no student/teacher found
Chloe070196 Feb 22, 2024
e3887d3
add function getUserProfile in user controllers
Satokii Feb 22, 2024
9ecda62
add findProfileById function in user domain
Satokii Feb 22, 2024
8ad0534
Merge pull request #127 from boolean-uk/Chloe-#125-fix-newly-register…
Chloe070196 Feb 23, 2024
1e9d9f3
update api spec with user profile GET req
Satokii Feb 23, 2024
57a7ff6
removed apostrophe causing error in api spec file
Satokii Feb 23, 2024
9300f5e
amend try/catch block in getUserProfile function
Satokii Feb 23, 2024
cf7fc2f
Merge pull request #128 from boolean-uk/126-route-profileid-get
Satokii Feb 23, 2024
f5e2f18
add department name
LAVINIABENZAR Feb 23, 2024
37a1c2d
Merge pull request #132 from boolean-uk/131-add-the-department-name-o…
LAVINIABENZAR Feb 23, 2024
6d00ac8
fix: include profile
Chloe070196 Feb 23, 2024
2e3fd23
Merge branch 'main' into Chloe-#130-fix-edit-post-db-calls-includes-t…
Chloe070196 Feb 23, 2024
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
5 changes: 0 additions & 5 deletions .env.example

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ jobs:
with:
node-version: 'lts/*'
- run: npm ci
- run: npx eslint src
- run: npx prisma migrate reset --force --skip-seed
- run: npm run lint
- run: npm run db-reset
Empty file modified .husky/pre-commit
100644 → 100755
Empty file.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,6 @@ WORKDIR /app
ENV NODE_ENV production
ENV PATH /root/.volta/bin:$PATH

RUN npm run migrate

CMD [ "npm", "run", "start" ]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Once you have complete the above guide, continue to the steps below.
## API Spec

[TODO]: <Deploy and update the link below>
[Deployed API Spec](https://UPDATEME)
[Deployed API Spec](https://boolean-team-dev-server.fly.dev/api-docs/)

The API Spec is hosted by the server itself (i.e. this project), and the view/page is generated automatically by the SwaggerUI libraryi.

Expand Down
Loading