-
Notifications
You must be signed in to change notification settings - Fork 3
feat: implement stateless authentication using NextAuth with demo users #4
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
Open
Monish-Parmar10
wants to merge
4
commits into
IPS-TECH-CLUB:main
Choose a base branch
from
Monish-Parmar10:feature/authentication
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+4,346
−1,170
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,81 @@ | ||
| | title | description | | ||
| | -------- | ----------------------------------------------------------------------------------------- | | ||
| | Overview | Introduction to the Tech Club Website, its purpose, and what the project aims to deliver. | | ||
|
|
||
| --- | ||
|
|
||
| # IPS Tech Club Website | ||
|
|
||
| Official platform for the IPS Tech Club community. | ||
|
|
||
| --- | ||
|
|
||
| ## Project Overview | ||
|
|
||
| The Tech Club Website is a modern web platform developed to represent the technical club online. The website is designed to provide information about the club, its activities, events, team members, and technical initiatives. | ||
|
|
||
| It also serves as a **centralized platform** where students and contributors can interact with club updates and resources. | ||
|
|
||
| > The project is built using a modern full-stack web development approach using Next.js, React, and TypeScript to ensure scalability, performance, and maintainability. | ||
|
|
||
| The goal is to create a production-ready, contributor-friendly codebase that can grow as the club expands its digital presence. | ||
|
|
||
| --- | ||
|
|
||
| ## Project Requirements | ||
|
|
||
| --- | ||
|
|
||
| ### Functional Requirements | ||
|
|
||
| - Display club information and updates | ||
| - Show events and announcements | ||
| - Provide reusable UI components | ||
| - Support scalable routing system | ||
| - Support future feature expansion (authentication, dashboards, etc.) | ||
|
|
||
| ### Non-Functional Requirements | ||
|
|
||
| - Clean and maintainable code structure | ||
| - High performance and fast load times | ||
| - SEO-friendly rendering | ||
| - Easy onboarding for new contributors | ||
| - Code quality enforcement | ||
| - Testing support | ||
|
|
||
| --- | ||
|
|
||
| ## Tech Stack | ||
|
|
||
| --- | ||
|
|
||
| **1.Core Technologies** | ||
|
|
||
| - Next.js 16 — Full-stack React framework for building fast and SEO-friendly web applications | ||
| - React 19 — Component-based UI library | ||
| - TypeScript — Provides type safety and better developer experience | ||
|
|
||
| **2.Styling** | ||
|
|
||
| - Tailwind CSS — Utility-first CSS framework for fast UI development | ||
| - clsx — Utility for conditional class names | ||
| - tailwind-merge — Prevents Tailwind class conflicts | ||
|
|
||
| **3.Code Quality & Formatting** | ||
|
|
||
| - ESLint — Maintains code quality and enforces coding standards | ||
| - Prettier — Ensures consistent code formatting | ||
| - Husky — Runs checks before Git commits | ||
| - lint-staged — Runs linters only on staged files | ||
|
|
||
| **4.Testing** | ||
|
|
||
| - Jest — JavaScript testing framework | ||
| - ts-jest — TypeScript support for Jest | ||
|
|
||
| **5.Logging** | ||
|
|
||
| - Pino — Fast logging library | ||
| - pino-pretty — Makes logs readable in development | ||
|
|
||
| --- |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| export default { | ||
| '*.{js,jsx,ts,tsx,json,css,md}': 'prettier --write', | ||
| const config = { | ||
| '*.{js,ts,tsx}': ['eslint --fix', 'prettier --write'], | ||
| }; | ||
|
|
||
| export default config; | ||
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -13,8 +13,10 @@ | |
| "prepare": "husky install" | ||
| }, | ||
| "dependencies": { | ||
| "bcryptjs": "^3.0.3", | ||
| "clsx": "^2.1.1", | ||
| "next": "16.1.5", | ||
| "next-auth": "^4.24.13", | ||
|
Comment on lines
15
to
+19
|
||
| "pino": "^10.3.0", | ||
| "pino-pretty": "^13.1.3", | ||
| "react": "19.2.3", | ||
|
|
@@ -23,16 +25,20 @@ | |
| }, | ||
| "devDependencies": { | ||
| "@tailwindcss/postcss": "^4", | ||
| "@types/bcryptjs": "^3.0.0", | ||
| "@types/jest": "^30.0.0", | ||
| "@types/node": "^20", | ||
| "@types/react": "^19", | ||
| "@types/react-dom": "^19", | ||
| "autoprefixer": "^10.4.27", | ||
| "babel-plugin-react-compiler": "1.0.0", | ||
| "eslint": "^9", | ||
| "eslint-config-next": "16.1.5", | ||
| "husky": "^9.1.7", | ||
| "jest": "^30.2.0", | ||
| "jest-environment-jsdom": "^30.2.0", | ||
| "lint-staged": "^16.2.7", | ||
| "postcss": "^8.5.8", | ||
| "prettier": "^3.8.1", | ||
| "tailwindcss": "^4", | ||
| "ts-jest": "^29.4.6", | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
lint-staged.config.jsuses ESMexport default, butpackage.jsondoes not declare"type": "module". Unless lint-staged is explicitly configured to load ESM here, Node will treat this file as CommonJS and fail to parse it. Consider renaming tolint-staged.config.mjsor switching tomodule.exports = config.