Fact Or Fiction is an engaging web application designed to challenge users' knowledge and critical thinking skills. This project serves as a comprehensive introduction to modern web development, demonstrating the implementation of a full-stack application using React and Supabase.
- Frontend: React
- Backend: Supabase (Backend-as-a-Service)
- Browse and explore a diverse collection of statements
- Engage with content through voting (fact or fiction)
- React to statements (e.g., "mind-blown", "skeptical")
- Submit new statements for community verification
- Real-time updates leveraging Supabase capabilities
This project aims to provide a practical, hands-on experience in web development, covering:
- Frontend development with React
- Backend integration using Supabase
- Real-time web application features
- User interaction and engagement techniques
- Node.js (v14 or later)
- npm (v6 or later)
- Git
-
Clone the repository:
git clone https://github.com/yourusername/fact-or-fiction.git
-
Navigate to the project directory:
cd fact-or-fiction
-
Install dependencies:
npm install
-
Configure environment variables: Create a
.env
file in the root directory with the following content:REACT_APP_SUPABASE_URL=your_supabase_project_url REACT_APP_SUPABASE_ANON_KEY=your_supabase_anon_key
-
Start the development server:
npm start
-
Access the application at
http://localhost:3000
/src
: Source code directory/components
: React components/hooks
: Custom React hooks/services
: API and service functions/styles
: Style-related files
- Follow React best practices and hooks guidelines
- Maintain consistent code formatting (consider using Prettier)
- Write unit tests for critical functions and components
We welcome contributions to Fact Or Fiction. Please follow these steps:
- Fork the repository
- Create a feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License. See the LICENSE file for details.
For further information or support, please contact the project maintainers.