Skip to content

man0l/tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started with the Application on macOS

This project includes both a React frontend and a Flask backend. Follow these steps to set up and run the application on macOS.

Prerequisites

  • Homebrew: A package manager for macOS. Install it using:

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  • Node.js and npm: Install using Homebrew:

    brew install node
  • Python and pip: Install using Homebrew:

    brew install python
  • Flask: Install Flask using pip:

    pip install flask

Setup Instructions

  1. Clone the Repository:
    Open Terminal and clone the repository to your local machine:

    git clone <repository-url>
    cd <repository-directory>
  2. Install Backend Dependencies:
    Use pip to install the Python dependencies:

    pip install -r requirements.txt
  3. Install Frontend Dependencies:
    Use npm to install the Node.js dependencies:

    npm install
  4. Set Up the Database:
    Initialize and migrate the database using Flask-Migrate:

    flask db init
    flask db migrate
    flask db upgrade
  5. Set Up Environment Variables:
    Create a .env file in the root of your project directory and add your OpenAI API key:

    OPENAI_API_KEY=your_openai_api_key_here
    
  6. Create the Database File:
    Create the storage.db file in the instance directory:

    touch instance/storage.db

Running the Application

Frontend

  • Start the React App:
    Run the following command to start the React development server:
    npm start
    Open http://localhost:3000 to view it in your browser.

Backend

  • Start the Flask Server:
    Run the following command to start the Flask backend server:
    python app.py

Learn More

These instructions should help you set up and run the application on macOS, including setting up the necessary environment variables for the OpenAI API and creating the database file.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages