Skip to content

community driven platform where failure is not something to hide but something to celebrate : all the stuff LinkedIn filters out

License

Notifications You must be signed in to change notification settings

mansiruhil/fail-u-forward

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

97 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

It’s a community driven platform where failure is not something to hide but something to celebrate. It's designed to share honest stories of setbacks and rejections and lessons learned: all the stuff LinkedIn filters out.

πŸ“ Project Insights

Stars Forks Issues Open PRs Closed PRs Languages
Stars Forks Issues Open PRs Closed PRs Languages Count

πŸ“‚ Features

  • πŸ“’ Post your rejections, failures and real lessons learned
  • πŸ” Browse stories by category:
    • Startup Crashes
    • Interview Wrecks
    • Project Chaos
    • and more coming soon
  • πŸ–₯️ Smart AI validation for respectful, safe and constructive content

πŸ› οΈ Technology Stack

  • Frontend: Next.js + TypeScript
  • Backend: Next.js API routes
  • Database & Auth: Firebase
  • AI Validation: Gemini

πŸ“ Project Structure

fail-u-forward/
β”œβ”€β”€  app/                          # Next.js App Router directory
β”‚   β”œβ”€β”€  api/                      # API routes and endpoints
β”‚   β”‚   β”œβ”€β”€  chatbot/              # AI chatbot API endpoints
β”‚   β”‚   β”œβ”€β”€  follow/               # User follow/unfollow functionality
β”‚   β”‚   β”œβ”€β”€ πŸ“ news/                 # News and updates API
β”‚   β”‚   β”œβ”€β”€ πŸ“ post/                 # Post management API
β”‚   β”‚   β”œβ”€β”€ πŸ“ upload/               # File upload handling
β”‚   β”‚   β”œβ”€β”€ πŸ“ users/                # User management API
β”‚   β”‚   └── πŸ“ validate/             # Content validation API
β”‚   β”œβ”€β”€ πŸ“ about/                    # About page
β”‚   β”œβ”€β”€ πŸ“ feed/                     # Main feed page
β”‚   β”œβ”€β”€ πŸ“ jobs/                     # Job-related pages
β”‚   β”œβ”€β”€ πŸ“ login/                    # Authentication pages
β”‚   β”œβ”€β”€ πŸ“ messages/                 # Messaging system
β”‚   β”œβ”€β”€ πŸ“ network/                  # Network/social features
β”‚   β”œβ”€β”€ πŸ“ networkpost/              # Network post management
β”‚   β”œβ”€β”€ πŸ“ notifications/            # Notification system
β”‚   β”œβ”€β”€  post/                     # Individual post pages
β”‚   β”œβ”€β”€ πŸ“ profile/                  # User profile pages
β”‚   β”œβ”€β”€  register/                 # User registration
β”‚   β”œβ”€β”€ πŸ“ sad/                      # Failure story pages
β”‚   β”œβ”€β”€ πŸ“ technews/                 # Technology news section
β”‚   β”œβ”€β”€  topic/                    # Topic-based categorization
β”‚   β”œβ”€β”€ πŸ“„ globals.css               # Global styles
β”‚   β”œβ”€β”€  layout.tsx                # Root layout component
β”‚   β”œβ”€β”€ πŸ“„ page.tsx                  # Home page
β”‚   └── πŸ“„ storyPage.tsx             # Story display page
β”œβ”€β”€  components/                   # Reusable UI components
β”‚   β”œβ”€β”€ πŸ“ ui/                       # Basic UI components
β”‚   β”œβ”€β”€ πŸ“ sidebar/                  # Sidebar components
β”‚   β”œβ”€β”€  theme/                    # Theme-related components
β”‚   β”œβ”€β”€  feed/                     # Feed-specific components
β”‚   β”œβ”€β”€ πŸ“ layout/                   # Layout components
β”‚   β”œβ”€β”€ πŸ“ post/                     # Post-related components
β”‚   β”œβ”€β”€ πŸ“ profile/                  # Profile components
β”‚   β”œβ”€β”€ πŸ“„ chatbot.tsx               # AI chatbot component
β”‚   β”œβ”€β”€ πŸ“„ theme-provider.tsx        # Theme context provider
β”‚   └── πŸ“„ theme-toggle.tsx          # Dark/light mode toggle
β”œβ”€β”€ πŸ“ contexts/                     # React Context providers
β”‚   β”œβ”€β”€ πŸ“„ AuthContext.tsx           # Authentication context
β”‚   └── πŸ“„ AuthProvider.tsx          # Auth context provider
β”œβ”€β”€ πŸ“ hooks/                        # Custom React hooks
β”‚   └── πŸ“„ use-toast.ts              # Toast notification hook
β”œβ”€β”€ πŸ“ lib/                          # Utility libraries and configurations
β”‚   β”œβ”€β”€ πŸ“„ firebase.tsx              # Firebase client configuration
β”‚   β”œβ”€β”€  firebaseAdmin.tsx         # Firebase admin configuration
β”‚   └──  utils.ts                  # General utility functions
β”œβ”€β”€ πŸ“ public/                       # Static assets
β”‚   └── πŸ“ locales/                  # Internationalization files
β”œβ”€β”€ πŸ“ services/                     # Business logic and API services
β”‚   β”œβ”€β”€  ai.ts                     # AI/ML service integrations
β”‚   β”œβ”€β”€  firebase.client.ts        # Firebase client services
β”‚   β”œβ”€β”€ πŸ“„ follow.ts                 # Follow/unfollow functionality
β”‚   β”œβ”€β”€  news.ts                   # News service
β”‚   β”œβ”€β”€  posts.ts                  # Post management services
β”‚   β”œβ”€β”€  users.ts                  # User management services
β”‚   β”œβ”€β”€ πŸ“„ username.ts               # Username validation
β”‚   └── πŸ“„ validation.ts             # Content validation services
β”œβ”€β”€ πŸ“ scripts/                      # Build and utility scripts
β”‚   └──  accessibility-test.js     # Accessibility testing script
β”œβ”€β”€ πŸ“ __tests__/                    # Test files
β”œβ”€β”€ πŸ“ .github/                      # GitHub workflows and templates
β”œβ”€β”€  .vscode/                      # VS Code configuration
β”œβ”€β”€  .util/                        # Utility files
β”œβ”€β”€ πŸ“„ .eslintrc.json                # ESLint configuration
β”œβ”€β”€ πŸ“„ .firebaserc                   # Firebase project configuration
β”œβ”€β”€  .gitignore                    # Git ignore rules
β”œβ”€β”€ πŸ“„ .npmrc                        # NPM configuration
β”œβ”€β”€  ACCESSIBILITY.md              # Accessibility guidelines
β”œβ”€β”€ πŸ“„ ACCESSIBILITY_CHECKLIST.md    # Accessibility checklist
β”œβ”€β”€ πŸ“„ CODE_OF_CONDUCT.md            # Code of conduct
β”œβ”€β”€ πŸ“„ Contributing.md               # Contribution guidelines
β”œβ”€β”€  components.json               # UI components configuration
β”œβ”€β”€ πŸ“„ firebase.json                 # Firebase hosting configuration
β”œβ”€β”€  i18n.ts                       # Internationalization setup
β”œβ”€β”€  jest.config.js                # Jest testing configuration
β”œβ”€β”€ πŸ“„ jest.setup.js                 # Jest setup file
β”œβ”€β”€ πŸ“„ LICENSE                       # MIT License
β”œβ”€β”€  next.config.js                # Next.js configuration
β”œβ”€β”€  next-i18next.config.js        # Next.js i18n configuration
β”œβ”€β”€ πŸ“„ package.json                  # Project dependencies and scripts
β”œβ”€β”€  postcss.config.js             # PostCSS configuration
β”œβ”€β”€  README.md                     # Project documentation
β”œβ”€β”€  route.ts                      # API route handler
β”œβ”€β”€ πŸ“„ SECURITY.md                   # Security guidelines
β”œβ”€β”€  tailwind.config.ts            # Tailwind CSS configuration
β”œβ”€β”€  tsconfig.json                 # TypeScript configuration
└── πŸ“„ vanta.d.ts                    # Vanta.js type definitions

Directory Descriptions:

  • app/ - Next.js 13+ App Router directory containing all pages and API routes
  • components/ - Reusable React components organized by feature
  • contexts/ - React Context providers for global state management
  • hooks/ - Custom React hooks for shared logic
  • lib/ - Utility libraries, configurations, and shared constants
  • public/ - Static assets like images, icons, and localization files
  • services/ - Business logic layer for API calls and data management
  • scripts/ - Build tools, testing scripts, and automation utilities

βš™οΈ Setup Instructions

πŸ“¦ Scripts

Command Description
npm run dev Run the development server
npm run build Build project for production
npm start Start production server
npm run lint Run linter checks

NOTE: πŸ“¦ project manager

previously used pnpm but the project now runs entirely on npm !!

Local Development:

1. Clone the repository

git clone https://github.com/your-username/fail-u-forward.git

2. Move into the project directory

cd fail-u-forward

3. Install dependencies

npm install

4. Start the dev server

npm run dev

πŸ›£οΈ What's Next:

  • anonymous posting support
  • filters by topic (eg career, academics, personal)
  • voice/video storytelling support follow feature to allow users to follow each other

πŸ“© Contact

πŸ“„ license:

this project is licensed under the MIT License

About

community driven platform where failure is not something to hide but something to celebrate : all the stuff LinkedIn filters out

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published