Skip to content

This is a Full Stack application, basically to create and display facts along with their source of information, their category as well as voting system for each fact.

Notifications You must be signed in to change notification settings

sarfarazstark/todayilearned

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started with Create React App

This is a Full Stack application, basically to create and display facts along with their source of information, their category as well as voting system for each fact.

Technologies Used

  • Frontend: React, Tailwind CSS
  • Backend: Supabase
  • Testing: Jest, React Testing Library
  • Deployment: Netlify
  • Version Control: Git, GitHub

TODO

  • Create a new Supabase project
  • Create a new table in Supabase
  • Create a new React app
  • Connect the React app to Supabase
  • Fetch data from the Supabase table
  • Display the data in the React app
  • Add a form to submit new data
  • Add a voting system
  • Add a category system
  • Add a authentication system
  • Make user vote only once

Setting Up Environmental Variables

To run this app with Supabase, you need to set up environmental variables. Follow these steps:

  1. Create a .env.local file in the root of your project:

    touch .env.local
  2. Add your Supabase credentials to the .env.local file:

    REACT_APP_SUPABASE_URL=your-supabase-url
    REACT_APP_SUPABASE_KEY=your-supabase-key

    Replace your-supabase-url and your-supabase-key with your actual Supabase URL and API key.

  3. Ensure your .env.local file is included in your .gitignore file to prevent it from being committed to your version control system:

    echo ".env.local" >> .gitignore

Installation

  1. Clone the repository:

    git clone https://github.com/sarfarazstark/todayilearned
  2. Navigate to the project directory:

    cd todayilearned
  3. Install the dependencies:

     npm install

Available Scripts

In the project directory, you can run:

  1. npm start

    Runs the app in development mode.
    Open http://localhost:3000 to view it in your browser.

    The page will reload when you make changes.
    You may also see any lint errors in the console.

  2. npm test

    Launches the test runner in the interactive watch mode.
    See the section about running tests for more information.

  3. npm run build

    Builds the app for production to the build folder.
    It correctly bundles React in production mode and optimizes the build for the best performance.

    The build is minified and the filenames include the hashes.
    Your app is ready to be deployed!

    See the section about deployment for more information.

About

This is a Full Stack application, basically to create and display facts along with their source of information, their category as well as voting system for each fact.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published