-
Notifications
You must be signed in to change notification settings - Fork 50
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
Andhika Muttaqien #32
base: main
Are you sure you want to change the base?
Conversation
Commit Ke-1 :
|
|
||
#### \*Updated 01 Dec 2020, 16:42AM GMT+07:00 | ||
|
||
#### \*API-Doc with MD on Progress |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oke on progress ya untuk markdown nya
server/app.js
Outdated
@@ -0,0 +1,20 @@ | |||
require('dotenv').config(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ini jgn lupa di kasih conditional ya
@@ -0,0 +1,33 @@ | |||
const { verifyToken } = require('../helpers/jwt'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
authentication aman
@@ -0,0 +1,14 @@ | |||
const jwt = require('jsonwebtoken'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jwt aman
@@ -0,0 +1,16 @@ | |||
const bcrypt = require('bcryptjs'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bcrypt aman
@@ -0,0 +1,44 @@ | |||
module.exports = (err, req, res, next) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice error handler lumayan lengkap
server/routes/index.js
Outdated
router.post('/register', UserController.register); | ||
|
||
router.post('/login', UserController.login); | ||
|
||
router.post('/googleLogin', UserController.googleLogin); | ||
|
||
router.use(authentication); | ||
|
||
router.post('/tasks', TaskController.create); | ||
|
||
router.get('/tasks', TaskController.getAllTasks); | ||
|
||
router.get('/tasks/:id', TaskController.getTask); | ||
|
||
router.patch('/tasks/:id', authorization, TaskController.updateTask); | ||
|
||
router.put('/tasks/:id', authorization, TaskController.editTask); | ||
|
||
router.delete('/tasks/:id', authorization, TaskController.deleteTask); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good
Client :
|
Commit Ke - 3 & 4 :
|
Commit Ke-5 :
|
Commit Ke-6 :
|
Commit Ke-7 :
|
No description provided.