├── backend ├── .husky │ └── pre-commit ├── middleware │ ├── notFound.js │ ├── errorHandler.js │ └── auth.js ├── .prettierrc ├── .prettierignore ├── config │ └── database.js ├── routes │ ├── users.js │ ├── columns.js │ ├── projectMembers.js │ ├── boards.js │ ├── issues.js │ ├── projects.js │ └── auth.js ├── utils │ ├── jwt.js │ └── password.js ├── package.json ├── .env.example ├── .gitignore ├── controllers │ └── utilityController.js ├── services │ └── tempUserStorage.js ├── server.js ├── prisma │ └── schema.prisma └── SETUP.md ├── frontend ├── .husky │ └── pre-commit ├── postcss.config.mjs ├── app │ ├── page.tsx │ ├── landingpage │ │ ├── components │ │ │ ├── button.tsx │ │ │ ├── LoadingSection.tsx │ │ │ ├── Navbar.tsx │ │ │ └── FlowingMenu.tsx │ │ └── assests │ │ │ └── logo-icon-for-dark-bg.svg │ ├── api │ │ ├── issues │ │ │ ├── stats │ │ │ │ └── route.ts │ │ │ ├── [issueId] │ │ │ │ ├── move │ │ │ │ │ └── route.ts │ │ │ │ └── route.ts │ │ │ └── route.ts │ │ ├── auth │ │ │ ├── check-email │ │ │ │ └── [email] │ │ │ │ │ └── route.ts │ │ │ ├── resend-otp │ │ │ │ └── route.ts │ │ │ ├── check-username │ │ │ │ └── [username] │ │ │ │ │ └── route.ts │ │ │ ├── verify-email │ │ │ │ └── route.ts │ │ │ ├── forgot-password │ │ │ │ └── route.ts │ │ │ ├── reset-password │ │ │ │ └── route.ts │ │ │ ├── login │ │ │ │ └── route.ts │ │ │ ├── logout │ │ │ │ └── route.ts │ │ │ ├── me │ │ │ │ └── route.ts │ │ │ └── register │ │ │ │ └── route.ts │ │ ├── projects │ │ │ ├── [id] │ │ │ │ ├── setup-default-board │ │ │ │ │ └── route.ts │ │ │ │ ├── stats │ │ │ │ │ └── route.ts │ │ │ │ └── route.ts │ │ │ └── route.ts │ │ ├── columns │ │ │ ├── board │ │ │ │ └── [boardId] │ │ │ │ │ └── route.ts │ │ │ ├── route.ts │ │ │ └── [columnId] │ │ │ │ └── route.ts │ │ ├── contact │ │ │ └── route.ts │ │ └── boards │ │ │ ├── route.ts │ │ │ └── [boardId] │ │ │ └── route.ts │ └── layout.tsx ├── test-setup.ts ├── cypress │ ├── e2e │ │ └── signup.cy.ts │ ├── fixtures │ │ └── example.json │ └── support │ │ ├── e2e.ts │ │ └── commands.ts ├── next.config.ts ├── lib │ ├── utils.ts │ ├── timeUtils.ts │ ├── recentProjects.ts │ ├── auth.ts │ └── navigationHistory.ts ├── .prettierrc ├── cypress.config.ts ├── vitest.config.ts ├── components.json ├── eslint.config.js ├── .gitignore ├── tsconfig.json ├── components │ ├── ui │ │ ├── label.tsx │ │ ├── textarea.tsx │ │ ├── input.tsx │ │ ├── badge.tsx │ │ ├── loading-overlay.tsx │ │ ├── page-loading.tsx │ │ ├── button.tsx │ │ ├── card.tsx │ │ └── loading.tsx │ ├── protected-route.tsx │ └── providers │ │ └── LoadingProvider.tsx ├── hooks │ ├── useToastMessage.ts │ └── useLoadingState.ts └── package.json ├── .github ├── ISSUE_TEMPLATE │ ├── implementation_task.md │ ├── feature_request.md │ └── bug_report.yaml ├── workflows │ ├── labeler.yml │ ├── test.yml │ ├── greetings-new-contributor.yml │ ├── lint-format.yml │ └── stale-issues.yml ├── pull_request_template.md └── labeler.yml ├── public └── assets │ └── logos │ ├── nexara-logo-dark.png │ ├── nexara-logo-light.png │ ├── logo-icon-for-light-bg.svg │ ├── logo-icon-for-dark-bg.svg │ ├── logo-horizontal-for-light-bg.svg │ ├── logo-horizontal-for-dark-bg.svg │ ├── logo-vertical-for-light-bg.svg │ └── logo-vertical-for-dark-bg.svg ├── .gitattributes ├── eslint.config.mjs ├── .gitignore ├── LICENSE ├── COMMUNITY_GUIDELINES.md └── CODE_OF_CONDUCT.md /backend/.husky/pre-commit: -------------------------------------------------------------------------------- 1 | npx lint-staged 2 | -------------------------------------------------------------------------------- /frontend/.husky/pre-commit: -------------------------------------------------------------------------------- 1 | npx lint-staged 2 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/implementation_task.md: -------------------------------------------------------------------------------- 1 | //Re-Implement this 2 | -------------------------------------------------------------------------------- /frontend/postcss.config.mjs: -------------------------------------------------------------------------------- 1 | const config = { 2 | plugins: ['@tailwindcss/postcss'], 3 | } 4 | 5 | export default config 6 | -------------------------------------------------------------------------------- /public/assets/logos/nexara-logo-dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AxeAi/Nexara/HEAD/public/assets/logos/nexara-logo-dark.png -------------------------------------------------------------------------------- /public/assets/logos/nexara-logo-light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AxeAi/Nexara/HEAD/public/assets/logos/nexara-logo-light.png -------------------------------------------------------------------------------- /frontend/app/page.tsx: -------------------------------------------------------------------------------- 1 | import { redirect } from 'next/navigation' 2 | 3 | export default function Home() { 4 | redirect('/landingpage') 5 | } 6 | -------------------------------------------------------------------------------- /frontend/test-setup.ts: -------------------------------------------------------------------------------- 1 | import '@testing-library/jest-dom' 2 | import { expect } from 'vitest' 3 | 4 | // Make expect globally available 5 | ;(global as any).expect = expect 6 | -------------------------------------------------------------------------------- /frontend/cypress/e2e/signup.cy.ts: -------------------------------------------------------------------------------- 1 | describe('sign up page', () => { 2 | it('should open the landing page sign up functionality', () => { 3 | cy.visit('/signup') 4 | }) 5 | }) -------------------------------------------------------------------------------- /frontend/next.config.ts: -------------------------------------------------------------------------------- 1 | import type { NextConfig } from 'next' 2 | 3 | const nextConfig: NextConfig = { 4 | /* config options here */ 5 | } 6 | 7 | export default nextConfig 8 | -------------------------------------------------------------------------------- /frontend/cypress/fixtures/example.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Using fixtures to represent data", 3 | "email": "hello@cypress.io", 4 | "body": "Fixtures are a great way to mock data for responses to routes" 5 | } 6 | -------------------------------------------------------------------------------- /frontend/lib/utils.ts: -------------------------------------------------------------------------------- 1 | import { type ClassValue, clsx } from 'clsx' 2 | import { twMerge } from 'tailwind-merge' 3 | 4 | export function cn(...inputs: ClassValue[]) { 5 | return twMerge(clsx(inputs)) 6 | } 7 | -------------------------------------------------------------------------------- /backend/middleware/notFound.js: -------------------------------------------------------------------------------- 1 | const notFound = (req, res, next) => { 2 | const error = new Error(`Not Found - ${req.originalUrl}`); 3 | res.status(404); 4 | next(error); 5 | }; 6 | 7 | module.exports = { notFound }; 8 | -------------------------------------------------------------------------------- /frontend/.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "semi": false, 3 | "singleQuote": true, 4 | "tabWidth": 2, 5 | "trailingComma": "es5", 6 | "printWidth": 80, 7 | "bracketSpacing": true, 8 | "arrowParens": "avoid" 9 | } 10 | -------------------------------------------------------------------------------- /frontend/cypress.config.ts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "cypress"; 2 | 3 | export default defineConfig({ 4 | e2e: { 5 | setupNodeEvents(on, config) { 6 | // implement node event listeners here 7 | }, 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /backend/.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "semi": true, 3 | "trailingComma": "es5", 4 | "singleQuote": true, 5 | "printWidth": 80, 6 | "tabWidth": 2, 7 | "useTabs": false, 8 | "bracketSpacing": true, 9 | "arrowParens": "avoid", 10 | "endOfLine": "lf" 11 | } 12 | -------------------------------------------------------------------------------- /backend/.prettierignore: -------------------------------------------------------------------------------- 1 | # Dependencies 2 | node_modules/ 3 | package-lock.json 4 | 5 | # Build outputs 6 | dist/ 7 | build/ 8 | 9 | # Database 10 | *.db 11 | *.sqlite 12 | 13 | # Environment files 14 | .env 15 | .env.local 16 | .env.production 17 | 18 | # Logs 19 | *.log 20 | 21 | # Prisma generated files 22 | 23 | prisma/migrations/*/migration.sql -------------------------------------------------------------------------------- /frontend/vitest.config.ts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from 'vitest/config' 2 | import react from '@vitejs/plugin-react' 3 | import path from 'path' 4 | 5 | export default defineConfig({ 6 | plugins: [react()], 7 | test: { 8 | environment: 'jsdom', 9 | setupFiles: ['./test-setup.ts'], 10 | globals: true, 11 | }, 12 | resolve: { 13 | alias: { 14 | '@': path.resolve(__dirname, '.'), 15 | }, 16 | }, 17 | }) 18 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Set default behavior to automatically normalize line endings 2 | * text=auto 3 | 4 | # Force Unix line endings for specific files 5 | *.js text eol=lf 6 | *.ts text eol=lf 7 | *.tsx text eol=lf 8 | *.json text eol=lf 9 | *.md text eol=lf 10 | *.yml text eol=lf 11 | *.yaml text eol=lf 12 | *.sql text eol=lf 13 | 14 | # Binary files 15 | *.png binary 16 | *.jpg binary 17 | *.jpeg binary 18 | *.gif binary 19 | *.ico binary 20 | *.svg binary -------------------------------------------------------------------------------- /.github/workflows/labeler.yml: -------------------------------------------------------------------------------- 1 | name: 'PR Labeler' 2 | 3 | on: 4 | - pull_request_target 5 | 6 | jobs: 7 | label: 8 | permissions: 9 | contents: read 10 | pull-requests: write 11 | runs-on: ubuntu-latest 12 | 13 | steps: 14 | - uses: actions/labeler@v4 15 | with: 16 | repo-token: '${{ secrets.GITHUB_TOKEN }}' 17 | configuration-path: '.github/labeler.yml' 18 | sync-labels: false 19 | -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- 1 | name: Test Workflow 2 | 3 | on: 4 | push: 5 | branches: ['*'] 6 | pull_request: 7 | branches: ['*'] 8 | workflow_dispatch: 9 | 10 | jobs: 11 | # Test case flows have been removed as requested 12 | placeholder: 13 | name: Placeholder Job 14 | runs-on: ubuntu-latest 15 | steps: 16 | - name: No test cases to run 17 | run: echo "Test case flows have been removed from this workflow" 18 | -------------------------------------------------------------------------------- /frontend/components.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://ui.shadcn.com/schema.json", 3 | "style": "new-york", 4 | "rsc": true, 5 | "tsx": true, 6 | "tailwind": { 7 | "config": "", 8 | "css": "app/globals.css", 9 | "baseColor": "neutral", 10 | "cssVariables": true, 11 | "prefix": "" 12 | }, 13 | "aliases": { 14 | "components": "@/components", 15 | "utils": "@/lib/utils", 16 | "ui": "@/components/ui", 17 | "lib": "@/lib" 18 | }, 19 | "iconLibrary": "lucide" 20 | } 21 | -------------------------------------------------------------------------------- /eslint.config.mjs: -------------------------------------------------------------------------------- 1 | import js from "@eslint/js"; 2 | import globals from "globals"; 3 | import tseslint from "typescript-eslint"; 4 | import pluginReact from "eslint-plugin-react"; 5 | import { defineConfig } from "eslint/config"; 6 | 7 | export default defineConfig([ 8 | { 9 | files: ["**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}"], 10 | plugins: { js }, 11 | rules: { ...js.configs.recommended.rules }, 12 | languageOptions: { globals: globals.browser }, 13 | }, 14 | tseslint.configs.recommended, 15 | pluginReact.configs.flat.recommended, 16 | ]); 17 | -------------------------------------------------------------------------------- /frontend/eslint.config.js: -------------------------------------------------------------------------------- 1 | import { FlatCompat } from '@eslint/eslintrc' 2 | import path from 'path' 3 | import { fileURLToPath } from 'url' 4 | 5 | const __filename = fileURLToPath(import.meta.url) 6 | const __dirname = path.dirname(__filename) 7 | 8 | const compat = new FlatCompat({ 9 | baseDirectory: __dirname, 10 | }) 11 | 12 | const config = [ 13 | ...compat.config({ 14 | extends: ['next/core-web-vitals'], 15 | }), 16 | { 17 | ignores: ['.next/**', 'node_modules/**', 'out/**', '.vercel/**'], 18 | }, 19 | ] 20 | 21 | export default config 22 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Dependencies 2 | node_modules/ 3 | **/node_modules/ 4 | 5 | # Logs 6 | npm-debug.log* 7 | yarn-debug.log* 8 | yarn-error.log* 9 | pnpm-debug.log* 10 | 11 | # Build output 12 | dist/ 13 | build/ 14 | 15 | # Environment variables 16 | .env 17 | .env.local 18 | .env.*.local 19 | 20 | # OS files 21 | .DS_Store 22 | Thumbs.db 23 | 24 | # IDEs and editors 25 | .vscode/ 26 | .idea/ 27 | *.swp 28 | 29 | # Coverage 30 | coverage/ 31 | 32 | # Optional npm cache directory 33 | .npm 34 | 35 | # Optional eslint cache 36 | .eslintcache 37 | 38 | # TypeScript 39 | *.tsbuildinfo 40 | -------------------------------------------------------------------------------- /frontend/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.* 7 | .yarn/* 8 | !.yarn/patches 9 | !.yarn/plugins 10 | !.yarn/releases 11 | !.yarn/versions 12 | 13 | # testing 14 | /coverage 15 | 16 | # next.js 17 | /.next/ 18 | /out/ 19 | 20 | # production 21 | /build 22 | 23 | # misc 24 | .DS_Store 25 | *.pem 26 | 27 | # debug 28 | npm-debug.log* 29 | yarn-debug.log* 30 | yarn-error.log* 31 | .pnpm-debug.log* 32 | 33 | # env files (can opt-in for committing if needed) 34 | .env* 35 | 36 | # vercel 37 | .vercel 38 | 39 | # typescript 40 | *.tsbuildinfo 41 | next-env.d.ts 42 | -------------------------------------------------------------------------------- /frontend/cypress/support/e2e.ts: -------------------------------------------------------------------------------- 1 | // *********************************************************** 2 | // This example support/e2e.ts is processed and 3 | // loaded automatically before your test files. 4 | // 5 | // This is a great place to put global configuration and 6 | // behavior that modifies Cypress. 7 | // 8 | // You can change the location of this file or turn off 9 | // automatically serving support files with the 10 | // 'supportFile' configuration option. 11 | // 12 | // You can read more here: 13 | // https://on.cypress.io/configuration 14 | // *********************************************************** 15 | 16 | // Import commands.js using ES2015 syntax: 17 | import './commands' -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: "" 5 | labels: "" 6 | assignees: "" 7 | --- 8 | 9 | **Is your feature request related to a problem? Please describe.** 10 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 11 | 12 | **Describe the solution you'd like** 13 | A clear and concise description of what you want to happen. 14 | 15 | **Describe alternatives you've considered** 16 | A clear and concise description of any alternative solutions or features you've considered. 17 | 18 | **Additional context** 19 | Add any other context or screenshots about the feature request here. 20 | -------------------------------------------------------------------------------- /backend/config/database.js: -------------------------------------------------------------------------------- 1 | const { PrismaClient } = require('@prisma/client'); 2 | 3 | // Create a singleton instance of PrismaClient 4 | const prisma = new PrismaClient({ 5 | log: 6 | process.env.NODE_ENV === 'development' 7 | ? ['query', 'info', 'warn', 'error'] 8 | : ['error'], 9 | errorFormat: 'pretty', 10 | }); 11 | 12 | // Handle graceful shutdown 13 | process.on('beforeExit', async () => { 14 | await prisma.$disconnect(); 15 | }); 16 | 17 | process.on('SIGINT', async () => { 18 | await prisma.$disconnect(); 19 | process.exit(0); 20 | }); 21 | 22 | process.on('SIGTERM', async () => { 23 | await prisma.$disconnect(); 24 | process.exit(0); 25 | }); 26 | 27 | module.exports = prisma; 28 | -------------------------------------------------------------------------------- /frontend/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES2017", 4 | "lib": ["dom", "dom.iterable", "esnext"], 5 | "allowJs": true, 6 | "skipLibCheck": true, 7 | "strict": true, 8 | "noEmit": true, 9 | "esModuleInterop": true, 10 | "module": "esnext", 11 | "moduleResolution": "bundler", 12 | "resolveJsonModule": true, 13 | "isolatedModules": true, 14 | "jsx": "preserve", 15 | "incremental": true, 16 | "plugins": [ 17 | { 18 | "name": "next" 19 | } 20 | ], 21 | "paths": { 22 | "@/*": ["./*"] 23 | } 24 | }, 25 | "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], 26 | "exclude": ["node_modules"] 27 | } 28 | -------------------------------------------------------------------------------- /frontend/components/ui/label.tsx: -------------------------------------------------------------------------------- 1 | 'use client' 2 | 3 | import * as React from 'react' 4 | import * as LabelPrimitive from '@radix-ui/react-label' 5 | 6 | import { cn } from '@/lib/utils' 7 | 8 | function Label({ 9 | className, 10 | ...props 11 | }: React.ComponentProps) { 12 | return ( 13 | 21 | ) 22 | } 23 | 24 | export { Label } 25 | -------------------------------------------------------------------------------- /backend/routes/users.js: -------------------------------------------------------------------------------- 1 | const express = require('express'); 2 | const router = express.Router(); 3 | 4 | const { 5 | getProfile, 6 | updateProfile, 7 | changePassword, 8 | deactivateAccount, 9 | getUserStats, 10 | } = require('../controllers/userController'); 11 | 12 | const { protect } = require('../middleware/auth'); 13 | const { validateUserUpdate } = require('../middleware/validation'); 14 | 15 | // All routes are protected 16 | router.use(protect); 17 | 18 | // User profile routes 19 | router.get('/profile', getProfile); 20 | router.put('/profile', validateUserUpdate, updateProfile); 21 | router.get('/stats', getUserStats); 22 | 23 | // Password management 24 | router.put('/change-password', changePassword); 25 | 26 | // Account management 27 | router.delete('/deactivate', deactivateAccount); 28 | 29 | module.exports = router; 30 | -------------------------------------------------------------------------------- /frontend/app/landingpage/components/button.tsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | interface ButtonProps { 4 | children: React.ReactNode 5 | variant?: 'primary' | 'secondary' 6 | className?: string 7 | onClick?: () => void 8 | } 9 | 10 | export default function Button({ 11 | children, 12 | variant = 'primary', 13 | className = '', 14 | onClick, 15 | }: ButtonProps) { 16 | const baseClasses = 17 | 'px-4 py-2 rounded-full transition-all duration-300 font-medium' 18 | const variantClasses = { 19 | primary: 'bg-white text-black hover:bg-gray-200', 20 | secondary: 'border border-white/20 text-white hover:bg-white/10', 21 | } 22 | 23 | return ( 24 | 30 | ) 31 | } 32 | -------------------------------------------------------------------------------- /frontend/components/ui/textarea.tsx: -------------------------------------------------------------------------------- 1 | import * as React from 'react' 2 | 3 | import { cn } from '@/lib/utils' 4 | 5 | function Textarea({ className, ...props }: React.ComponentProps<'textarea'>) { 6 | return ( 7 |