Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
132 commits
Select commit Hold shift + click to select a range
14a0544
Tweaked CICD, removed husky, removed fly deployment
dogezen Oct 21, 2024
c5812af
Merge remote-tracking branch 'upstream/main'
dogezen Oct 24, 2024
39a987c
setting up Jasmine testing. First step in ensuring the pipeline will …
VictorsCodingCorner Oct 28, 2024
3d2add5
First untested version of an implementation for comments on posts.
OliverLundhAndersson Oct 28, 2024
5388277
updated prisma to work in accordance to the api spec
Badde00 Oct 29, 2024
b63509c
Removal of ";" i multiple files
OliverLundhAndersson Oct 29, 2024
9c33731
Removal of "," i multiple files and adjustments to match prettier
OliverLundhAndersson Oct 29, 2024
8498242
Added migration for comments
OliverLundhAndersson Oct 29, 2024
a84f821
Updated prisma model for Cohort. Added list of Cohorts to User model
Oct 29, 2024
a2c6485
Updated API spec to relfect cohort model changes
Oct 29, 2024
92c29f9
Added Cohort to User model in Api spec
Oct 29, 2024
22c9d38
Almost finished, the one thing remaining is to get the correct profil…
LudwigJL Oct 29, 2024
0e52e97
Updated openapi.yml to include API endpoints for comments
OliverLundhAndersson Oct 29, 2024
de15321
Updated seed.js to include dummy data for comments.
OliverLundhAndersson Oct 29, 2024
8d98a00
Merge pull request #8 from boolean-uk/comments
OliverLundhAndersson Oct 29, 2024
9a64f4f
Merge branch 'main' of github.com:boolean-uk/team-dev-server-ex-2410-…
Oct 29, 2024
eda3d0d
Merge branch 'main' of github.com:boolean-uk/team-dev-server-ex-2410-…
Badde00 Oct 29, 2024
4ed88fa
tried to fix merge comments
Badde00 Oct 29, 2024
f824d97
Merge branch 'main' of github.com:boolean-uk/team-dev-server-ex-2410-…
sebgro98 Oct 29, 2024
faf5506
updated actions/checkout to v4
sebgro98 Oct 29, 2024
e5db18e
Merge pull request #18 from boolean-uk/comments-api-spec
sebgro98 Oct 29, 2024
2c1246b
Merge branch 'main' of github.com:boolean-uk/team-dev-server-ex-2410-…
Oct 29, 2024
0b9f850
start of implementation
FelixMathiasson Oct 29, 2024
9021791
Merge pull request #16 from boolean-uk/32-update-prisma-to-represent-…
sebgro98 Oct 29, 2024
3f99720
mege conflicts
sebgro98 Oct 29, 2024
07ce118
Merge pull request #11 from boolean-uk/Setting-up-Automated-testing-B…
sebgro98 Oct 29, 2024
1e3f900
Merge pull request #14 from boolean-uk/9-backend-design-cohort-update…
Badde00 Oct 29, 2024
d75a691
added update function
FelixMathiasson Oct 29, 2024
2defdf5
fixed faulty url
FelixMathiasson Oct 29, 2024
8a216c9
Added function to getAll and create a cohort
Oct 29, 2024
a9e78ae
finally it works, just how user got dealt the data
FelixMathiasson Oct 29, 2024
41c5d03
updated the seed.js and added a new migration for updating the cohort…
sebgro98 Oct 29, 2024
63ba8b4
Solved the Profile issue with include, I believe everything should be…
LudwigJL Oct 29, 2024
e825966
post domain ready for review
LudwigJL Oct 30, 2024
f13d951
updated the schema with @default tags on post and cohort
sebgro98 Oct 30, 2024
f1e3973
fixed white lines
sebgro98 Oct 30, 2024
381c377
Updated the route and description i openapi.yml for GET comments
OliverLundhAndersson Oct 30, 2024
1df6944
Merge branch 'main' locally, have resolved all merge conflicts
LudwigJL Oct 30, 2024
9a6e30b
Merge pull request #23 from boolean-uk/22-fix-seedjs-and-add-migrate-…
sebgro98 Oct 30, 2024
d6dac91
Merge pull request #26 from boolean-uk/24-update-prisma-schema-so-tha…
sebgro98 Oct 30, 2024
a44f49f
Merge branch 'main' of github.com:boolean-uk/team-dev-server-ex-2410-…
Oct 30, 2024
8e1dd29
Added CRUD in domain cohort object
Oct 30, 2024
759144f
Add CRUD routes for cohorts
Oct 30, 2024
501e6ed
Added controller for cohort
Oct 30, 2024
8e9c1db
Lint fix based on Github action result
Oct 30, 2024
77f8161
Merge branch 'main' of github.com:boolean-uk/team-dev-server-ex-2410-…
sebgro98 Oct 30, 2024
31aa0a5
fixed id issue
FelixMathiasson Oct 30, 2024
8f61e50
Merge pull request #19 from boolean-uk/comments-dummy-data
sebgro98 Oct 30, 2024
ea8885b
Merge branch 'main' of github.com:boolean-uk/team-dev-server-ex-2410-…
sebgro98 Oct 30, 2024
6567bdb
Merge pull request #27 from boolean-uk/API-spec-comment-bugfix
sebgro98 Oct 30, 2024
cbc1c5c
Merge conflict solved
LudwigJL Oct 30, 2024
7805dcf
Merge branch 'main' of github.com:boolean-uk/team-dev-server-ex-2410-…
Oct 30, 2024
29f9708
Changed status code from 201 to 200 when returning from getById
Oct 30, 2024
88bb02b
Updating what is being return in the user object when adding user to …
Oct 30, 2024
6b7bfd3
Removed migrations.sql
LudwigJL Oct 30, 2024
f55fba3
Updated API spec
Oct 30, 2024
5498387
API spec was bugging. Should be fixed
Oct 30, 2024
eb78310
Updated API spec to include new cohort endpoints
Oct 30, 2024
83a6148
added user test and coverage form the coverage branch
VictorsCodingCorner Oct 30, 2024
a151f30
Merge pull request #31 from boolean-uk/4-create-the-objects-user-post
sebgro98 Oct 30, 2024
d4b83cd
User.spec tests implemented. Test coverage disabeld
VictorsCodingCorner Oct 30, 2024
9a4efb2
Merge pull request #32 from boolean-uk/10-user-automated-test
Badde00 Oct 30, 2024
bc05b14
Merge pull request #30 from boolean-uk/21-backend-design-cohort-imple…
Badde00 Oct 30, 2024
7fffb57
Implementing getAll posts functionality on /posts endpoint. Updated A…
Oct 30, 2024
f8456e3
fixed permissions in PUT update user
FelixMathiasson Oct 30, 2024
6ecb8e0
Merge branch 'main' of https://github.com/boolean-uk/team-dev-server-…
FelixMathiasson Oct 30, 2024
043d3b4
Added get request findById for Post with correct route.
LudwigJL Oct 30, 2024
433581d
fix to API spec Post componenet
Oct 30, 2024
4d11a70
Merge branch '1-api-endpoint-get-get-all-posts' of github.com:boolean…
Oct 30, 2024
3acc8ea
coverage tool should now work. Had to swich from nyc to c8. still wor…
VictorsCodingCorner Oct 30, 2024
e375120
solved the bug with failing constantly
FelixMathiasson Oct 30, 2024
53bef88
Update API spec
Oct 30, 2024
d6aa38f
removed log output
FelixMathiasson Oct 30, 2024
71a0122
Did the open api for getById
LudwigJL Oct 30, 2024
706917c
Merge pull request #28 from boolean-uk/Put_implementation
sebgro98 Oct 30, 2024
1b2c4d5
Added more data in response body in also every endpoint
Oct 30, 2024
c04b0a1
Merge branch 'main' of github.com:boolean-uk/team-dev-server-ex-2410-…
Oct 30, 2024
707d997
Merge pull request #35 from boolean-uk/1-api-endpoint-get-get-all-posts
Badde00 Oct 30, 2024
fcf95a9
Merge pull request #34 from boolean-uk/6-Automated-Test-Coverage-new
sebgro98 Oct 30, 2024
262a937
Merge branch 'main' of github.com:boolean-uk/team-dev-server-ex-2410-…
Oct 31, 2024
48b8cf8
Fixed JSON format to not have nested post and changed the spelling mi…
LudwigJL Oct 31, 2024
39c6da6
Changed open api spec to match the ow changed json format
LudwigJL Oct 31, 2024
d0019b0
Updated User and Profile to include more data
OliverLundhAndersson Oct 31, 2024
a05cf3a
Revert old open api due and changed it to include main's new specs
LudwigJL Oct 31, 2024
fe257c1
Merge branch '37-fix-json-format-bug' of https://github.com/boolean-u…
LudwigJL Oct 31, 2024
2b0ca67
Revert to keep users/id/update
LudwigJL Oct 31, 2024
2e01964
Updated User to default specialism to Software Developer
OliverLundhAndersson Oct 31, 2024
b92ccdc
Resolved conflict
LudwigJL Oct 31, 2024
a6e0bbe
Merge pull request #40 from boolean-uk/37-fix-json-format-bug
sebgro98 Oct 31, 2024
7afe777
Merge pull request #38 from boolean-uk/33-change-response-data-in-cohort
sebgro98 Oct 31, 2024
1c15122
Updated the API spec
OliverLundhAndersson Oct 31, 2024
74bb4ee
Merge remote-tracking branch 'origin/main' into update-user-with-spec…
OliverLundhAndersson Oct 31, 2024
034da7a
Prettier fixes
OliverLundhAndersson Oct 31, 2024
e0075dc
More prettier fixes
OliverLundhAndersson Oct 31, 2024
5306a69
Added removed function findManyByFirstName
OliverLundhAndersson Oct 31, 2024
0b857fd
Added migration files
OliverLundhAndersson Oct 31, 2024
13403f2
Added update function in domain class
Oct 31, 2024
48d005d
Added route for PUT request
Oct 31, 2024
449e510
Added functionality in post controller to check parameter and request…
Oct 31, 2024
c17cfd6
Added PUT endpoint in API spec for post
Oct 31, 2024
12b533c
Prettier fixes in seed.js
OliverLundhAndersson Oct 31, 2024
bf0ce69
Updated post.js domain so that the user hashed password is not returned.
Oct 31, 2024
cd12755
post now works
FelixMathiasson Oct 31, 2024
896f629
added post.spec.js, covers arount 70% of post. Given the time this wi…
VictorsCodingCorner Oct 31, 2024
1063bcd
Added code that connects a user (student) with a cohort.
Oct 31, 2024
610a0e5
cohort profile fixes
OliverLundhAndersson Oct 31, 2024
33d22c6
cohort profile fixes
OliverLundhAndersson Oct 31, 2024
af74a9c
githubUrl to githubUsername changes
OliverLundhAndersson Oct 31, 2024
6ba4777
Added checks so that only a user can edit their own post(s)
Oct 31, 2024
3aefe41
Merge pull request #43 from boolean-uk/update-user-with-specialism
sebgro98 Oct 31, 2024
89076ce
Merge branch 'main' of github.com:boolean-uk/team-dev-server-ex-2410-…
sebgro98 Oct 31, 2024
4c1cc7b
Merge pull request #47 from boolean-uk/46-populate-database-with-conn…
sebgro98 Oct 31, 2024
b0cac68
Merge branch 'main' of github.com:boolean-uk/team-dev-server-ex-2410-…
sebgro98 Oct 31, 2024
72ccca7
Merge branch 'main' of https://github.com/boolean-uk/team-dev-server-…
Oct 31, 2024
33f8246
Merge for testing
Oct 31, 2024
de746f9
Changed from githubUrl to githubUsername in domain/post.js
Oct 31, 2024
0380da6
Merge branch 'main' of github.com:boolean-uk/team-dev-server-ex-2410-…
Oct 31, 2024
2867176
Merge branch '42-create-put-for-post' of github.com:boolean-uk/team-d…
sebgro98 Oct 31, 2024
3767ef3
Merge branch 'main' of https://github.com/boolean-uk/team-dev-server-…
Yumikitsu Oct 31, 2024
6c41a54
Deleted bad file
Yumikitsu Oct 31, 2024
2e4aaa7
Including 'specialism' field from users in all of the cohort endpoint…
Oct 31, 2024
2c9df5a
Merge branch 'main' of https://github.com/boolean-uk/team-dev-server-…
VictorsCodingCorner Oct 31, 2024
a482651
uppdated post.spec.js and user.spec.js to work with new user
VictorsCodingCorner Oct 31, 2024
b807518
Merge pull request #50 from boolean-uk/49-backend-include-the-users-s…
sebgro98 Oct 31, 2024
dd1c1ad
Merge branch 'main' of github.com:boolean-uk/team-dev-server-ex-2410-…
sebgro98 Oct 31, 2024
7b71281
Merge branch '41-post-automated-test' of https://github.com/boolean-u…
VictorsCodingCorner Oct 31, 2024
cc94a25
Merge pull request #44 from boolean-uk/42-create-put-for-post
sebgro98 Oct 31, 2024
c98313d
Githubusername corrected from the old githubURL
VictorsCodingCorner Oct 31, 2024
3d55d12
Merge pull request #45 from boolean-uk/postpostEndpoint
sebgro98 Oct 31, 2024
8dea073
fixed put
FelixMathiasson Oct 31, 2024
817575b
Merge pull request #48 from boolean-uk/41-post-automated-test
sebgro98 Oct 31, 2024
bbfd09f
Merge branch 'main' of github.com:boolean-uk/team-dev-server-ex-2410-…
sebgro98 Oct 31, 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
4 changes: 0 additions & 4 deletions .dockerignore

This file was deleted.

5 changes: 0 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
name: CI
on: [push, pull_request]
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
JWT_TOKEN: ${{ secrets.JWT_TOKEN }}
JWT_EXPIRY: ${{ secrets.JWT_EXPIRY }}
jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -14,4 +10,3 @@ jobs:
node-version: 'lts/*'
- run: npm ci
- run: npx eslint src
- run: npx prisma migrate reset --force --skip-seed
21 changes: 0 additions & 21 deletions .github/workflows/deploy.yml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Run Jasmine Tests

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'

- name: Install dependencies
run: npm install

- name: Install Jasmine
run: npm install jasmine --save-dev

- name: Initialize Jasmine
run: npx jasmine init

- name: Run tests with coverage
run: npm run test:coverage

- name: Upload coverage report
if: success()
uses: actions/upload-artifact@v3
with:
name: coverage-report
path: coverage
4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

36 changes: 0 additions & 36 deletions Dockerfile

This file was deleted.

Loading