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.
Stars | Forks | Issues | Open PRs | Closed PRs | Languages |
- π’ 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
- Frontend: Next.js + TypeScript
- Backend: Next.js API routes
- Database & Auth: Firebase
- AI Validation: Gemini
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 routescomponents/
- Reusable React components organized by featurecontexts/
- React Context providers for global state managementhooks/
- Custom React hooks for shared logiclib/
- Utility libraries, configurations, and shared constantspublic/
- Static assets like images, icons, and localization filesservices/
- Business logic layer for API calls and data managementscripts/
- Build tools, testing scripts, and automation utilities
π¦ 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 !!
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
- anonymous posting support
- filters by topic (eg career, academics, personal)
- voice/video storytelling support follow feature to allow users to follow each other
- Github: mansiruhil
- LinkedIn: mansiruhil
- Discord: failuforward
π license:
this project is licensed under the MIT License