-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ft(create-article): create user article
- Create model for article ft(article): create article - create helper function to generate slug from title feat(articles): update and delete artices - modify article model - add method to edit article - add method to delete article - restrict update to just (3) times [Delivers #159206054] feat(validate-input): Validate user input - validate user input - create user controller class - check if email is unique - check if username is unique - fix Hound CI file extension error - test for signup route [Delivers #159206048] chore(coverage): Increase coverage by 75% - add tests for user profile modifications - modify a utility function - modify validate.js [Delivers #159403248] ft(create-article): create user article - Write unit tests - Create model for article and association with user model - Create middleware to validate data to create article - Create helper function to create article - Create helper function to generate unique slugs - Add image upload feature using cloudinary - Create route and controller to create article - Create route and controller get an article using slug parameter - Create route and controller to get all articles [Delivers #159206054]
- Loading branch information
1 parent
5d4bbaf
commit 376cc51
Showing
10 changed files
with
85 additions
and
11,007 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Launch Program", | ||
"program": "${workspaceFolder}/helpers/vsDebug.js" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import dotenv from 'dotenv'; | ||
|
||
dotenv.config(); | ||
|
||
const config = { | ||
secret: process.env.SECRET, | ||
jwtSecret: process.env.JWT_TOKEN_SECRET, | ||
cloudinary: { | ||
cloud_name: process.env.CLOUD_NAME, | ||
api_key: process.env.API_KEY, | ||
api_secret: process.env.API_SECRET, | ||
} | ||
}; | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const addsum = (a, b) => { | ||
const sum = a + b; | ||
const multiply = a * b; | ||
const addMultilpy = sum + multiply; | ||
return addMultilpy; | ||
}; | ||
console.log(addsum(4, 3)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.