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

14 create crud functionality for post domain and endpoints #112

Open
wants to merge 42 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
5874560
Tweaked CICD, removed husky, removed deployment
dogezen Oct 21, 2024
daf1910
merged from upstream
dogezen Oct 24, 2024
2326cca
initialCommit
Oct 28, 2024
b9d122d
first commit
Ingeborgausteid Oct 28, 2024
354ac45
First commit
tuvaea Oct 28, 2024
f0cc815
adds password validation
Ingeborgausteid Oct 29, 2024
b1e5ec3
Updated openapi.yml with profileImage
tuvaea Oct 29, 2024
2034c13
Added profileImage to prisma schema and seed.js
tuvaea Oct 29, 2024
9c21e2b
Removed failed migration
tuvaea Oct 29, 2024
3f8c12c
added user patch functionality
tvaltn Oct 29, 2024
dc3132b
added relevant fields, changed class structure to match newly created…
Oct 29, 2024
dbc91b2
adds validateUser function in middleware\user.js with the password va…
Ingeborgausteid Oct 29, 2024
04b4a9a
adds in routes\user.js instead of in controllers\user.js
Ingeborgausteid Oct 29, 2024
6aa6abd
added logged in user routing
tvaltn Oct 29, 2024
647caa2
Added profileImage to user.js domain
tuvaea Oct 29, 2024
86ef6bb
fixed role format from request body
tvaltn Oct 29, 2024
b56e095
fixed order of seeding data
Oct 29, 2024
52145ad
adds 400 response to /users in openapi.yaml
Ingeborgausteid Oct 29, 2024
3007118
adds updated openapi.yml with 400 response to patch in /users
Ingeborgausteid Oct 29, 2024
e0040d0
Merge pull request #24 from boolean-uk/add-password-validation
Brandsegg Oct 29, 2024
d4ac66c
moved request modification to middleware
tvaltn Oct 29, 2024
e13ed2e
Merge branch 'main' into 4-update-the-userprofile-table-with-relevant…
JHalvor Oct 29, 2024
9e0a80a
Merge pull request #26 from boolean-uk/4-update-the-userprofile-table…
Brandsegg Oct 29, 2024
5827558
Merge branch 'main' into 23-implement-update-user-functionality-in-us…
tvaltn Oct 29, 2024
b624f5a
added new user fields to update endpoint
tvaltn Oct 29, 2024
5db6a8a
Merge pull request #27 from boolean-uk/23-implement-update-user-funct…
Brandsegg Oct 29, 2024
7d9aced
Added email-validation in the middleware/user.js file.
thomamn Oct 29, 2024
711bdb7
Merge branch 'main' of github.com:boolean-uk/team-dev-server-ex-2410-…
tuvaea Oct 30, 2024
fd865b3
Resolved merge conflict
tuvaea Oct 30, 2024
e83b887
Merge pull request #25 from boolean-uk/11-update-the-profile-table-wi…
Brandsegg Oct 30, 2024
58cec2f
Merge branch 'main' of github.com:boolean-uk/team-dev-server-ex-2410-…
thomamn Oct 30, 2024
1e456f6
Merge pull request #35 from boolean-uk/1-add-email-format-validation-…
Brandsegg Oct 30, 2024
339e5c1
copypaste progress from issue 5
eyvmal Oct 29, 2024
7a9f548
modify getAll to fetch from database
eyvmal Oct 29, 2024
a3eb2af
add getById endpoint
eyvmal Oct 29, 2024
cf1c1e4
add delete endpoint
eyvmal Oct 29, 2024
699b286
update create post method to connect to database
eyvmal Oct 29, 2024
7e32f23
reformat domain- and controller-file of post to match the user-files …
eyvmal Oct 29, 2024
ddad804
remove userid from create endpoint
eyvmal Oct 30, 2024
46814e4
add more fields to return on post calls
eyvmal Oct 30, 2024
fb2053e
update post model in database and return value of post in endpoints
eyvmal Oct 30, 2024
f18bc19
reformat toJSON and names
eyvmal Oct 30, 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 .env.example

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.

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
Loading