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

Devops #467

Closed
wants to merge 230 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
230 commits
Select commit Hold shift + click to select a range
fd48e1c
enhance-issue113 improved the lighthouse mobile scores
jjinendra3 Apr 15, 2024
468f9ed
enhance-issue113 improved the lighthouse mobile scores minor fix
jjinendra3 Apr 15, 2024
3c45a90
Merge branch 'main' into issue113
jjinendra3 Apr 15, 2024
d8314f0
enhance-issue113 improved the lighthouse mobile scores- minor fixes
jjinendra3 Apr 18, 2024
8e61786
enhance-issue113 improved the lighthouse mobile scores- minor fix
jjinendra3 Apr 18, 2024
26d9fdc
chore: fixed the url of the redis in the env.sample file
krishnaacharyaa Apr 18, 2024
0fbed1a
chore: Fixed the frontend test cases
krishnaacharyaa Apr 18, 2024
ea15e40
chore: Added additional flag to the frontend jest test cases run command
krishnaacharyaa Apr 18, 2024
6ad392d
enhance-issue113 improved the lighthouse mobile scores-format
jjinendra3 Apr 19, 2024
e9a4382
Enhancement-#113 - Better the lighthouse score in mobile device
krishnaacharyaa Apr 19, 2024
3fb8945
feat: Added auth middleware
0xmohitsen Apr 22, 2024
7766364
feat: Added env example
0xmohitsen Apr 22, 2024
0772354
feat: Added env variables
0xmohitsen Apr 22, 2024
026abe7
feat: Added logic to update user data with newly created posts
0xmohitsen Apr 22, 2024
70c4c4e
feat: Added checkauth middleware to protect the create post route
0xmohitsen Apr 22, 2024
570d2b8
feat: Imported env variables
0xmohitsen Apr 22, 2024
6f242ec
feat: Added context + interfaces
0xmohitsen Apr 22, 2024
5118647
feat: Changed toastify position to top-center
0xmohitsen Apr 22, 2024
614b125
feat: Wrapped all routes in user-contex-provider
0xmohitsen Apr 22, 2024
e3f9f1e
feat: Added onSubmit logic + appropriate error when user is invalid
0xmohitsen Apr 22, 2024
695c9aa
feat: Added token in req headers + added appropriate error
0xmohitsen Apr 22, 2024
2c7b0d5
feat: Added logic for logout + added login and logout icons + added c…
0xmohitsen Apr 22, 2024
43115c4
feat: Changed error msg to make it human understandable
0xmohitsen Apr 22, 2024
ceb0114
feat: Updated env sample
0xmohitsen Apr 22, 2024
1d85896
feat: Added proper error message
0xmohitsen Apr 22, 2024
4e3c7df
feat: fixed toast message to right corner
0xmohitsen Apr 24, 2024
28c4e8f
feat: Changed field name from createPosts to posts in user db schema
0xmohitsen Apr 24, 2024
537943d
feat: formatted the backend + changed auth middleware name to authent…
0xmohitsen Apr 24, 2024
bd1e115
feat: Removed hardcode response messages
0xmohitsen Apr 24, 2024
d167b8a
feat: Changed interface into type
0xmohitsen Apr 24, 2024
1dc59a7
feat: Removed catched errors to directly display on frontend + added …
0xmohitsen Apr 24, 2024
0f1909a
feat: Added login & logout svg icons + removed lucide-react icons
0xmohitsen Apr 24, 2024
78b6f82
feat: Added db check for username field
0xmohitsen Apr 24, 2024
98984e1
feat: Set errors with appropriate fields coming from backend response…
0xmohitsen Apr 24, 2024
658e174
feat: Changed login & logout icon name
0xmohitsen Apr 24, 2024
72cb5b6
feat: Reverted: Set errors with appropriate fields coming from backen…
0xmohitsen Apr 24, 2024
e03ee04
feat: Resize login icon
0xmohitsen Apr 24, 2024
98abeec
feat: Updated cookie-parser package
0xmohitsen Apr 24, 2024
1ecad14
feat: Removed contextApi + put the error msg in the input error msg
0xmohitsen Apr 26, 2024
dfe677f
feat: updated the cookieOptions when user logs out
0xmohitsen Apr 26, 2024
9912632
feat: Updated CORS configuration
0xmohitsen Apr 26, 2024
b7ee8ac
feat: Added client application's origin url
0xmohitsen Apr 26, 2024
2601a72
feat: Run format in both ends + removed localStorage + implemented si…
0xmohitsen Apr 27, 2024
c00d47e
feat: Added env for testing
0xmohitsen Apr 27, 2024
592cbfd
feat: removed cors configuration of credentials true
0xmohitsen Apr 27, 2024
ed122f4
feat-#146: Added Admin UI Screens to Frontend
devsharmagit Apr 17, 2024
4f67da6
added darkmode funtionalities
devsharmagit Apr 22, 2024
933fdbb
light mode navigation button updated
devsharmagit Apr 22, 2024
4f0a1fb
feat-#146: added mobile responsiveness
devsharmagit Apr 23, 2024
f41a897
feat-#146: layout and bug fixed
devsharmagit Apr 24, 2024
0dae320
feat-#146: added react outlet for admin routes
devsharmagit Apr 28, 2024
0225fef
feat-#169: added admin handler, user routes and protected post routes
devsharmagit Apr 30, 2024
01184cf
feat-#169: added author middleware, updated payload of token, removed…
devsharmagit May 1, 2024
f22ea21
feat-#169: added role to the paylot in signup
devsharmagit May 1, 2024
8f34f1c
feat-#169: changed name of middleware functions and updated isAuthorM…
devsharmagit May 2, 2024
9b11b76
feat-#169: fixed post model and user document update on deleting the…
devsharmagit May 5, 2024
9ee6513
enhancement-#102 Refactoring of all the md: to sm:
Chelseasingla1 May 12, 2024
93dad57
feat-#4 : configured vitest and added unit test for signup component
Aswin2255 May 10, 2024
689aa81
fix-#4: viteconfig file , testsetup file changed to ts, string consta…
Aswin2255 May 11, 2024
b4abad5
fix-#4: added more testcase,filenames are changed according to the gu…
Aswin2255 May 12, 2024
ed967b1
chore-#4 : unittest folder name changed, test files name changed
Aswin2255 May 12, 2024
229ce58
chore-#4 : added coverage options and verbose for detailed test report
Aswin2255 May 13, 2024
d45cf5c
chore-#4 : indentations fixed in vite.config.ts
Aswin2255 May 13, 2024
adf47c7
fix-#165: Categories Sidebar UI issue
amit429 May 13, 2024
e260eb1
fix-#110
adititapariya May 13, 2024
d2a794e
Fix vercel.json for both backend and frontend and cors issues
Sukomal07 May 13, 2024
ae9fe38
BUGFIX-#193: User can access undefined routes.
Mayur-666 May 13, 2024
e2410a5
fix: Fix api errors and added api funtions
Sukomal07 May 13, 2024
09e32fd
fix : files names
Sukomal07 May 13, 2024
1d5508e
fix: fix user model
Sukomal07 May 13, 2024
8210822
fix: fix signup , signin , signout and auth-middleware, added user me…
Sukomal07 May 14, 2024
f3550fa
added : aded isloggedin for checking user
Sukomal07 May 14, 2024
96a6cd5
fix : fix isLoggedIn code
Sukomal07 May 14, 2024
68f3729
feat-#177: Added husky of the project
Ameerjafar May 14, 2024
44c8e30
feat-#177: this is the good commit message
Ameerjafar May 14, 2024
16e6818
feat: Added the suggestion
Ameerjafar May 14, 2024
eb6be56
feat: added a little bit more extension to the backend/package lint-s…
Ameerjafar May 14, 2024
3a945c6
feat-#177: Removed the optional emoji from the regex
krishnaacharyaa May 15, 2024
9f8545e
chore: Added a detailed husky commit message
krishnaacharyaa May 15, 2024
d8d465c
chore: Added a detailed successful husky commit message
krishnaacharyaa May 15, 2024
05697be
docs-#188:add code_of_conduct file
officeneerajsaini May 14, 2024
31e7e0d
docs-#188:rename CODE_OF_CONDUCT file
officeneerajsaini May 14, 2024
08eea1a
docs-#188:insert file inside .github folder
officeneerajsaini May 14, 2024
3511b5b
fix : fix signin , signup , home page code , added axios-instance and…
Sukomal07 May 14, 2024
4496200
fix: fix signout problem, added custom hook and types
Sukomal07 May 15, 2024
b26ef5d
fix: fix .env.sample file in frontend change Port 5000 to 8080
Sukomal07 May 16, 2024
583ec77
fix: fix cookie_option , changed sameSite strict to none
Sukomal07 May 16, 2024
e2ca9b9
fix-#249: Replaced axios from axiosInstance + removed user from userS…
0xmohitsen May 15, 2024
f472c18
fix-#249: Added toast promise for pending , success and error while c…
0xmohitsen May 16, 2024
44e7ea2
fix-#258: Now only icons are visible in mobile screens + correction i…
0xmohitsen May 16, 2024
c4a0770
fix-#258: Removed lg + changed px-4 to px-8 + sm:px-8 to sm:px-16
0xmohitsen May 17, 2024
f6f67e7
feat-#177: cleared the husky bug
Ameerjafar May 18, 2024
8c53627
feat-#177: Added the prepare script in the root folder
Ameerjafar May 18, 2024
0526c4f
feat-#230: added the githubAction for the project
Ameerjafar May 17, 2024
d4add05
feat-#230: Added the reopen functionality
Ameerjafar May 17, 2024
7ff70d3
feat-#230: showing the message in pr comment
Ameerjafar May 18, 2024
35cf912
feat: Added the github action bot comment in the pr comment section
Ameerjafar May 18, 2024
5ea701f
feat: made the failure message more readable
Ameerjafar May 18, 2024
07e9e7b
feat: Deleted the package-lock.json
Ameerjafar May 18, 2024
96c6d45
feat: Deleted the frontend/package-lock.json
Ameerjafar May 18, 2024
fd11e4b
feat: added the user name in the success or failure message
Ameerjafar May 18, 2024
9f206fb
chore: fix removed the astricks wrapped around in the github PR title…
krishnaacharyaa May 19, 2024
f5707ee
fix-#270: Added the border and the background-color to differentiate …
rushil-b-patel May 19, 2024
fbd8f5f
fix-#159 Created Theme Changer Function to handle the dark and light …
Ritik-The-Dev May 19, 2024
8dae035
chore: Updated the messages of github action .json file
krishnaacharyaa May 19, 2024
ae730b1
feat-#301: Changed DB query + added constant user response messages
0xmohitsen May 19, 2024
8acb828
feat-#301: Now displaying error messages below violated input field i…
0xmohitsen May 19, 2024
5a6a520
feat-#301: Removed extra db call
0xmohitsen May 19, 2024
cdc26a1
chore: updated pr-title-checker.yaml
krishnaacharyaa May 19, 2024
429887e
fix-#263: Updated README file
Meetjain1 May 20, 2024
91fcd5d
core: Replaced GITHUB_TOKEN with secret PAT_TOKEN in the pr title che…
krishnaacharyaa May 21, 2024
3ece3ab
chore: Updated pr-title-checker.yaml
krishnaacharyaa May 21, 2024
ed96a67
chore: Revert pack the PAT_TOKEN with GITHUB_TOKEN
krishnaacharyaa May 21, 2024
e341e91
chore: updated the events of pr-title-checker github action
krishnaacharyaa May 22, 2024
fa3663f
chore: updated pr-title-checker.yaml to not to auto close the PR
krishnaacharyaa May 22, 2024
751f57e
fix: updated pr-title-checker.yaml
krishnaacharyaa May 22, 2024
641f381
chore: Added more crisp to the pr-title-checker.yaml
krishnaacharyaa May 22, 2024
7c5555b
chore: created validate-pr-template.yml
krishnaacharyaa May 23, 2024
6c49a6e
chore: updated validate-pr-template.yml to use pull_request_target
krishnaacharyaa May 23, 2024
a22cfa8
chore: updated validate-pr-template.yml
krishnaacharyaa May 23, 2024
a946e23
chore: Updated validate-pr-template.yml
krishnaacharyaa May 23, 2024
0cdc810
chore: updated validate-pr-template.yml
krishnaacharyaa May 23, 2024
dcd2ab2
chore: Update validate-pr-template.yml
krishnaacharyaa May 23, 2024
4860946
feat-#177: Added the eslint in the husky
Ameerjafar May 22, 2024
fd8e7fc
feat-#177: convert the airbnb lint to eslint:recommended and prettier…
Ameerjafar May 22, 2024
e1f8f8c
chore: Added the suggestions
Ameerjafar May 23, 2024
990f550
chore: revert to prettier one
Ameerjafar May 23, 2024
fcd701e
chore: added the prettier recommended
Ameerjafar May 23, 2024
999b2af
chore: updated validate-pr-template.yml
krishnaacharyaa May 23, 2024
ddddc49
chore: updated validate-pr-template.yml
krishnaacharyaa May 23, 2024
18326ae
fix-#220: Different height Post cards fix
Alen-Scaria1516 May 20, 2024
51d5d78
feat: Added darktheme for the signup and signin page
Ameerjafar May 21, 2024
82c4b55
feat: Added the dark them for the input fields
Ameerjafar May 25, 2024
04b0695
chore: Removing the package-lock.json and adding it in gitignore
krishnaacharyaa May 25, 2024
b71b2a5
chore: Updated README.md
krishnaacharyaa May 26, 2024
98916d7
fix-#229: Add Issue-Assigned.yaml file
Niranthari May 27, 2024
2354c41
Merge branch 'main' into bugfix/#229-github-actions-send-guidelines
Niranthari May 27, 2024
78bd1a6
chore: Giving the required permissions for the husky to function prop…
krishnaacharyaa May 27, 2024
d4f5a42
chore: Reverting the giving of required permissions for the husky to …
krishnaacharyaa May 27, 2024
7906910
chore: Simplifying the husky commit message
krishnaacharyaa May 27, 2024
0b3cd24
chore: Added the permission in the prepare section of the root packag…
krishnaacharyaa May 27, 2024
7be64bf
chore: Running prettier in the frontend folder
krishnaacharyaa May 27, 2024
2828549
chore: Running prettier in the backend folder
krishnaacharyaa May 27, 2024
216fb9c
chore: Fixing all the eslint errors in the backend
krishnaacharyaa May 27, 2024
ec4bb53
revert
rushil-b-patel May 25, 2024
0750c0b
fix-#257: added show/hide password functionality
rushil-b-patel May 26, 2024
6d606c1
fix-#257: Added show/hide password with SVG icons
rushil-b-patel May 26, 2024
a05672a
fix-#257 fix the eye-icons (swapped)
rushil-b-patel May 27, 2024
d6a5a04
fix-#257: resolving the app.js in password eye icon
rushil-b-patel May 28, 2024
a739531
chore: Removed the github and google auth feature as it is not functi…
krishnaacharyaa May 28, 2024
67454da
chore: Fixed the deployment issues
krishnaacharyaa May 28, 2024
9f6fea2
chore: update the eslint.config.js file
Ameerjafar May 28, 2024
c9aa507
chore remove any type rule from eslint.config.js
Ameerjafar May 28, 2024
e0ef36f
chore: Added the suggestion s
Ameerjafar May 28, 2024
e98d2e3
chore: Added the darktheme suggestion in the add blog
Ameerjafar May 28, 2024
eec15c6
chore: cleared the eslint error
Ameerjafar May 28, 2024
34af487
chore: cleared the eslint in the backend
Ameerjafar May 28, 2024
2185f1a
fix-#108: Fixed bug by adding responsiveness and inlining the skeleto…
Chelseasingla1 May 28, 2024
875e783
fix-#229: GitHub actions send guidelines (#365)
krishnaacharyaa May 28, 2024
0cd1559
chore: Moved the issue-assigned github workflow to the right position
krishnaacharyaa May 28, 2024
f63dc7a
chore: Refactoring the message in the issue assigned github action
krishnaacharyaa May 28, 2024
23a8ab6
chore: added the next() call inside the function
Ameerjafar May 31, 2024
b72d61b
chore: modify the darktheme in the add blog and fixed the eslint erro…
krishnaacharyaa May 31, 2024
055bdb8
fix-#362: Anchor tag added in the logo (#375)
RamakrushnaBiswal Jun 2, 2024
4779f83
fix-#387: added logo beside title in navbar
Adityajparmar37 Jun 2, 2024
08e08a9
fix-#387: added logo beside title in navbar with image refactoring
Adityajparmar37 Jun 2, 2024
d435990
fix-#387: added logo beside title in navbar (#391)
krishnaacharyaa Jun 2, 2024
9e344f0
fix-#392: added related blogs section in detailed blog page
vamsidhar-914 Jun 4, 2024
6c3922a
fix-#397: fixed view password button alignment
vamsidhar-914 Jun 4, 2024
f0b2237
fix-#339: added all related categoris posts
vamsidhar-914 Jun 5, 2024
d1e5688
fix-#397: fixed view password button alignment (#399)
krishnaacharyaa Jun 5, 2024
5c8427b
fix-#392: changed styling of posts for mobileView
vamsidhar-914 Jun 5, 2024
4c40ce0
fix-#392: added shimmer loading skeletons,fixed alignment
vamsidhar-914 Jun 6, 2024
2cc631c
fix-#392: fixed alignment
vamsidhar-914 Jun 7, 2024
df4f098
fix-#392: added related blogs section in detailed blog page (#398)
krishnaacharyaa Jun 7, 2024
a22bc6a
fix-#77: changed the traditional form to react hook form
Ameerjafar Jun 7, 2024
067921b
chore-#177: Added the suggestions
Ameerjafar Jun 8, 2024
e3f4147
fix-#77: cleared the catagories field bug
Ameerjafar Jun 8, 2024
af322ce
fix-#77: changed the traditional form to react hook form (#407)
krishnaacharyaa Jun 8, 2024
0447008
fix-#6: integration test completed for signin component , fixed unit …
Aswin2255 Jun 10, 2024
8af331c
feat-#178: added admin UI to frontend
devsharmag99 May 28, 2024
e3177a0
feat-#178: react import bug fix
devsharmag99 Jun 11, 2024
5a19104
feat-#178: enum added
devsharmag99 Jun 13, 2024
52f6ae3
feat-#178: clean redis cache on edit and delete
devsharmag99 Jun 17, 2024
55ed4f3
feat-#178: manually prettier format in both frontend and backend
devsharmagit Jun 17, 2024
bf99c48
feat-#178: manually prettier format in both frontend and backend
devsharmagit Jun 17, 2024
d90c7eb
feat-#178: added admin UI to frontend (#369)
krishnaacharyaa Jun 18, 2024
6fa9d77
chore: updated issue-assigned.yaml with proper link
krishnaacharyaa Jun 18, 2024
18b8e16
refactor-#418: added role type in frontend and backend
AMS003010 Jun 18, 2024
e762c3a
refactor-#418: replaced the rest of type Role
AMS003010 Jun 19, 2024
dc20c6b
fix-#418: fixed the issue
AMS003010 Jun 20, 2024
954593b
refactor-#418: Added role type in frontend and backend (#422)
krishnaacharyaa Jun 20, 2024
3c8c049
Update CONTRIBUTING.md
ayushrajparihar Jun 22, 2024
ec2de89
chore: updated CONTRIBUTING.md
krishnaacharyaa Jun 23, 2024
046c422
chore-#141: Updated Documentation (#428)
krishnaacharyaa Jun 23, 2024
b44c32b
fix-#379: Enhancing the footer by including GitHub and Discord for be…
Lanthoiba2022 Jun 25, 2024
2674fb6
fix-#379: Requested changes made for Enhancing the footer by includin…
Lanthoiba2022 Jun 25, 2024
c9cdade
fix-#379: Enhancing the footer by including GitHub and Discord for be…
krishnaacharyaa Jun 25, 2024
09e0b2a
fix-#427: Login-Page
MetiUmashri Jun 27, 2024
82bd0ab
fix-#427: Login-Page
MetiUmashri Jun 27, 2024
d7592f4
fix-#427: Login-Page (#436)
krishnaacharyaa Jun 27, 2024
12c559f
chore: Updated CONTRIBUTING.md to avoid confusion
krishnaacharyaa Jun 27, 2024
6d687c3
fix-#432: Bug Fixed
kapilG0 Jun 27, 2024
604df24
fix-#432: Fixed Bug
kapilG0 Jun 28, 2024
32388f7
fix-#432: header bug fixed
kapilG0 Jun 28, 2024
9a2514a
Update signin-page.tsx
kapilG0 Jun 28, 2024
66f7f76
Update signup-page.tsx
kapilG0 Jun 28, 2024
7d1a0ca
Update signin-page.tsx
kapilG0 Jun 28, 2024
460f4a5
Update signup-page.tsx
kapilG0 Jun 28, 2024
db4b416
fix-#432: Bug Fixed (#438)
krishnaacharyaa Jun 28, 2024
aaf569d
chore: Removed logs
krishnaacharyaa Jul 1, 2024
04e9222
fix-#275: Correct the icon color in dark mode
shivansh84ya Jul 2, 2024
aa7445c
Merge branch 'main' into update
shivansh84ya Jul 2, 2024
c7df8ad
fix-#275: Correct the icon color in dark mode (#441)
krishnaacharyaa Jul 3, 2024
623c07a
feat-#419: added post edit page
devsharmagit Jul 8, 2024
6b7161e
feat-#419: edits
devsharmagit Jul 9, 2024
ddb013b
fix-#6: integration test completed for signin component (#413)
krishnaacharyaa Jul 10, 2024
b3dc620
fix-#445: added custom loading skeleton for AddBlog section
AMS003010 Jul 10, 2024
300152f
Merge branch 'krishnaacharyaa:main' into loader-add-blog
AMS003010 Jul 10, 2024
f161687
Add require-auth-blog and update App.tsx to use it for add-blog route
MetiUmashri Jul 13, 2024
5394bc8
necessary changes done
MetiUmashri Jul 14, 2024
ba42d33
feat-#429: Added Google sign-in button to login page
siddharthisrani Jul 20, 2024
b1e47b1
fix-#445: Absence of a Proper Loading skeleton for the AddBlog Sectio…
krishnaacharyaa Jul 20, 2024
558ffed
refactor-#429: Used environment variables for URLs in Google OAuth an…
siddharthisrani Jul 21, 2024
3da3bd2
Merge branch 'main' into bugfix/429-Want-to-Add-signin-with-google-bu…
siddharthisrani Jul 23, 2024
72e43f3
refactor-#429: Removed token saving in localstorage for Google OAuth
siddharthisrani Jul 23, 2024
35b7810
refactor-#429: Removed token saving in localstorage for Google OAuth …
siddharthisrani Jul 23, 2024
f157e4a
feat-#429: Added Signin with Google button (#454)
krishnaacharyaa Jul 23, 2024
e298b45
feat-#419: Added post editing functionality (#443)
krishnaacharyaa Aug 3, 2024
0f28918
updated installation
Mayank0851 Aug 22, 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
40 changes: 40 additions & 0 deletions .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Wanderlust - GSSoC Contributors Code of Conduct


## ❌ You'll never get issue assigned

- I want to work on this issue please assign it to me, I'll enhance UI

- \_Create an AI generated issue \_and ask to assign

## ✅ You'll easily get issue assigned

- Hi, I know the fix for this issue, the code is breaking because of the useEffect we have added there, instead of that we need to use UseLayoutEffect, I can fix it within **ETA**: 1day.
- Hi, I seen a UI enhancement in category section of the website, here goes my sample UX/images <_link>_. And I want to pick this issue

## 💡Prop tip from the Project Admin (Me 😜)

- I am happy to provide you the points you need to reach the leaderboard, I look forward to give more points than needed if required, but the minimum I expect is your genuine interest to solve the issue and contribute.
- Want GSSoC points? Not the right place for you. Want to learn things and master git place for you, and forget about points you'll get more than expected
- I'm happy to help anyone who is really concerned in learning, _**but please don't spam 100s of project with your random message**_, Stick to 2-3 projects of your like and work on it.
- Didn't get any issue to work on? Just join the project's discord in readme. I'll help you find one :)
- Happy learning. Feel free to connect if you are concerned with learning and growing 😊

---

## For those who have time read below

### Issue Assignment Process

- **Preparation**: Contributors must thoroughly investigate issues before expressing interest.
- **ETA**: Provide an estimated time of completion for the issue.
- **Approach**: Describe the planned method or solution to resolve the issue.

### Communication

- **Expression of Interest**: Contributors should demonstrate their understanding and readiness to tackle the issue, rather than simply requesting assignment.

### Restrictions

- **AI-Based Issue Creation**: The use of AI to generate issues is strictly discouraged.
- **Handling Existing Issues**: Contributors are encouraged to focus on resolving existing issues rather than creating new, unnecessary ones.
35 changes: 28 additions & 7 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,37 @@ We're committed to maintaining a positive and inclusive community, and your coop
## Setting up the Project

To setup the project locally follow the steps:

1. Fork and Star the project.
2. Clone your forked repository.
3. Run `npm run installer`.
4. Set up your MongoDB database:
- Open MongoDB Compass and run MongoDB locally at `mongodb://localhost:27017`.
- Import sample posts data from `backend/data/sample_posts.json`.
5. Rename the `.env.sample` file in the backend and frontend folders to `.env`.
6. Launch the development server with `npm start` in the root directory of the repository.
4. Set up your databases
- Make sure you [install mongodb](https://www.mongodb.com/docs/manual/installation/) and run it on port `27017`
- Follow one of the two ways to prefill the sample data in the db
<details>
<summary>mongoimport</summary>

```bash
mongoimport --db wanderlust --collection posts --file ./data/sample_posts.json --jsonArray
```
</details>

OR

<details>
<summary>Manual insertion using mongodb compass</summary>

1. Create `wanderlust` db
2. Create a new collection named `posts` in the `wanderlust` db
3. Use **ADD DATA** option in the `posts` collection and use the content from `backend/data/sample_posts.json` file
</details>
- Make sure you [install redis](https://redis.io/docs/latest/operate/oss_and_stack/install/install-redis/) and run it in `redis://127.0.0.1:6379`


5. Set up env variables
- ```sh
cp backend/.env.sample backend/.env && cp frontend/.env.sample frontend/.env.local
```
7. Launch the development server with `npm start` in the root directory of the repository.

<a name="request-for-changes-pull-requests"></a>

Expand Down Expand Up @@ -109,7 +131,6 @@ To contribute to this project, you need to create a fork of the repository and t
Commit your changes, then push the branch to your fork with `git push -u fork` and open a pull request on [the Wanderlust repository](https://github.com/krishnaacharyaa/wanderlust) following the template provided.

<a name="guidelines-to-follow"></a>
Sure, let's refine the guidelines while keeping them clear and straightforward:

## Guidelines for Contributions

Expand Down
13 changes: 13 additions & 0 deletions .github/pr-title-checker-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"LABEL": {
"name": "Title needs formatting",
"color": "F9D0C4"
},
"CHECKS": {
"regexp": "^(fix|feat|docs|chore|refactor)(-#[0-9]+)?: .+"
},
"MESSAGES": {
"success": "Thank you mate!! The PR title meets project's contributing guidelines.",
"failure": "Hey wait!! Have you not still checked our contribution guidelines? Don't tell me!! Okay I'll tell one last time ; For your title to be reviewed the PR title should match the required format. \n\nFor example, it should be like: \"fix-#124: Added responsiveness to the Home page screen.\" \n\nOnce done, just trust in us, we'll reconsider your PR 😉"
}
}
25 changes: 25 additions & 0 deletions .github/workflows/issue-assigned.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Issue Assigned Comment

on:
issues:
types: [assigned]

jobs:
comment-on-issue:
runs-on: ubuntu-latest
steps:
- name: Comment on the assigned issue
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const issue_number = context.issue.number;
const issue_assignee = context.payload.assignee.login;
const contributing_guidelines_url = 'https://github.com/krishnaacharyaa/wanderlust/blob/main/.github/CONTRIBUTING.md#guidelines-for-contributions';

github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issue_number,
body: `Hey @${issue_assignee} 🎉! Thanks for jumping on this issue. Before you dive in, please check out our [contributing guidelines](${contributing_guidelines_url}) to ensure we're all on the same page. Happy coding! 🚀`
});
41 changes: 41 additions & 0 deletions .github/workflows/pr-title-checker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: 'PR Title Checker'
on:
pull_request_target:
types:
- opened
- edited

permissions:
contents: write
pull-requests: write
repository-projects: write

jobs:
check:
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v2

- name: Run PR Title Checker
id: title-check
uses: thehanimo/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
pass_on_octokit_error: false
configuration_path: .github/pr-title-checker-config.json

- name: PR title satisfied
if: success()
run: |
gh issue comment ${{ github.event.pull_request.number }} -R ${{ github.repository }} --body "Hey @${{ github.actor }}! Thanks for sticking to the guidelines! High five! 🙌🏻"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Close PR if title is invalid
if: failure()
run: |
gh issue comment ${{ github.event.pull_request.number }} -R ${{ github.repository }} --body $'Umm... did someone forget to read the style guide? Fix that PR title and let\'s try again! @${{ github.actor }}\nDon\'t worry, it happens to the best of us! Check out our [contributor guidelines](https://github.com/krishnaacharyaa/wanderlust/blob/main/.github/CONTRIBUTING.md) for more details.'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70 changes: 70 additions & 0 deletions .github/workflows/validate-pr-template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Validate PR Template

on:
pull_request_target:
types: [opened, edited]

jobs:
validate-pr:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Validate PR description
id: validate
run: |
echo "Validating PR template..."

REQUIRED_SECTIONS=("## Summary" "## Description" "## Images" "## Issue(s) Addressed" "## Prerequisites")
INVALID_STRINGS=(
"_Briefly describe the purpose of this PR._"
"_Explain in detail what this PR is all about. This should include the problem you're solving, the approach taken, and any technical details that reviewers need to know._"
"_Include any relevant images or diagrams that can help reviewers visualize the changes, if applicable_"
"_Enter the issue number of the bug(s) that this PR fixes_"
"Template should be strictly **Closes <issue_number>**"
"Example: Closes #1"
)

PR_BODY=$(jq -r .pull_request.body < $GITHUB_EVENT_PATH)
echo "$PR_BODY"
MISSING_SECTIONS=()
for section in "${REQUIRED_SECTIONS[@]}"; do
if ! echo "$PR_BODY" | grep -q "$section"; then
MISSING_SECTIONS+=("$section")
fi
done

FOUND_INVALID_STRINGS=()
for invalid in "${INVALID_STRINGS[@]}"; do
if echo "$PR_BODY" | grep -q "$invalid"; then
FOUND_INVALID_STRINGS+=("$invalid")
fi
done

if [ ${#MISSING_SECTIONS[@]} -ne 0 ] || [ ${#FOUND_INVALID_STRINGS[@]} -ne 0 ]; then
echo "PR description is missing required sections or contains invalid strings."
echo "## Missing Sections:" >> $GITHUB_STEP_SUMMARY
printf '%s\n' "${MISSING_SECTIONS[@]}" >> $GITHUB_STEP_SUMMARY
echo "## Invalid Strings Found:" >> $GITHUB_STEP_SUMMARY
printf '%s\n' "${FOUND_INVALID_STRINGS[@]}" >> $GITHUB_STEP_SUMMARY
echo "{result}={failure}" >> $GITHUB_OUTPUT
else
echo "PR description meets the template requirements."
echo "{result}={success}" >> $GITHUB_OUTPUT
fi

- name: Set PR label based on validation
if: ${{ steps.validate.outputs.result == 'failure' }}
run: |
gh pr edit ${{ github.event.pull_request.number }} --add-label "PR description needs formatting"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Remove PR label if validation passed
if: ${{ steps.validate.outputs.result == 'success' }}
run: |
gh pr edit ${{ github.event.pull_request.number }} --remove-label "PR description needs formatting"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ backend/.env
backend/node_modules
/node_modules
coverage/
.idea/
.idea/
package-lock.json
32 changes: 32 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

commit_msg_file="$1"
commit_msg=$(cat "$commit_msg_file")
regex_pattern="^(fix|feat|docs|chore|refactor)(-#[0-9]+)?: .+\$"
if [[ $commit_msg =~ $regex_pattern ]]; then
echo ""
echo "Hey, hurrah! Thank you for giving attention and following our community guidelines."
echo "We're excited to merge your code into the project!"
echo ""
else
echo ""
echo "Oops!! It seems like you haven't read our community guidelines yet!!"
echo "Commits can be of form:"
echo ""
echo "<tag>-#<issue number>: <commit message> # if you have relevant issue"
echo "OR"
echo "<tag>: <commit message> # if you don't have relevant issue"
echo ""
echo "Examples:"
echo "❌ Fixed a bug"
echo "✅ fix-#123: Fixed a bug"
echo "❌ Updated documentation file"
echo "✅ chore: Updated documentation"

echo ""
echo "To know all the available tags and for more details"
echo "Kindly refer to \033]8;;https://github.com/krishnaacharyaa/wanderlust/blob/9b11b769bb23150b746296cf9008056633d21921/.github/CONTRIBUTING.md#guidelines-for-contributions\aContributing Guidelines\033]8;;\a."
echo ""
exit 1
fi
11 changes: 11 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env sh

. "$(dirname -- "$0")/_/husky.sh"

cd frontend
echo [FRONTEND] Running the prettier format for you.
npx lint-staged

cd ../backend
echo [BACKEND] Running the prettier format for you
npx lint-staged
Loading