Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 8 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# ShopKart Environment Configuration Reference Template
# For Backend (backend/.env):
PORT=5000
MONGO_URI=mongodb://127.0.0.1:27017/shopkart
JWT_SECRET=your_super_secret_jwt_key_here

# For Frontend (frontend/.env):
VITE_API_BASE_URL=http://localhost:5000
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# CODEOWNERS for ShopKart Customer Authentication System
* @TheVicky1
32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: Bug Report
about: Create a report to help us fix a bug in ShopKart
title: '[BUG] '
labels: bug
assignees: ''
---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Enter registration/login credentials '....'
3. Observe session cookie behavior or API response
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots / Console Logs / Network Logs**
If applicable, add screenshots or HTTP request/response headers to help diagnose your issue.

**Environment Context:**
- OS: [e.g. Windows, macOS, Linux]
- Browser: [e.g. Chrome, Firefox, Safari]
- Node Version: [e.g. 20.x]
- MongoDB Version: [e.g. 6.0, Community Edition]

**Additional context**
Add any other context about the problem here.
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Feature Request
about: Suggest an idea or enhancement for ShopKart
title: '[FEAT] '
labels: enhancement
assignees: ''
---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I want support for refresh token rotation...

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**UI / UX Concepts**
If applicable, describe how this feature should fit into the frontend customer portal or backend API services.

**Additional context**
Add any other context or diagrams about the feature request here.
19 changes: 19 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## Description
A clear and concise summary of the changes introduced in this PR.

## Related Issues
Closes # (issue number)

## Type of Change
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Code refactoring / Cleanup
- [ ] Documentation update
- [ ] CI/CD or build pipeline change

## Checklist
- [ ] Frontend code passes lint checks (`cd frontend && npm run lint`).
- [ ] Frontend builds cleanly (`cd frontend && npm run build`).
- [ ] Backend runs without errors.
- [ ] Authentication flows (register, login, profile check, logout) tested locally.
- [ ] Documentation updated accordingly (if required).
17 changes: 17 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/backend"
schedule:
interval: "weekly"
open-pull-requests-limit: 5
- package-ecosystem: "npm"
directory: "/frontend"
schedule:
interval: "weekly"
open-pull-requests-limit: 5
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
open-pull-requests-limit: 5
50 changes: 50 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: CI Pipeline

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
backend-checks:
name: Backend Lint & Verify
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: backend/package-lock.json

- name: Install Backend Dependencies
run: cd backend && npm ci

frontend-checks:
name: Frontend Lint & Build
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: frontend/package-lock.json

- name: Install Frontend Dependencies
run: cd frontend && npm ci

- name: Run Oxlint
run: cd frontend && npm run lint

- name: Build Frontend Production Bundle
run: cd frontend && npm run build
19 changes: 19 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,21 @@
# Logs
logs
*.log
npm-debug.log*

# Environment files
.env
.env.*
!.env.example

# Dependency directories
node_modules/

# Build outputs
dist/
dist-ssr/

# IDE & OS files
.vscode/
.idea/
.DS_Store
Loading
Loading