Skip to content

Stars-AI-tutor/STARS_Tutor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

186 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Set Up Environment and Download Dependencies

Clone the Repo git clone https://github.com/Stars-AI-tutor/STARS_Tutor.git

  1. Create Virtual Environment:

    • Run the following command:
      python3 -m venv venv
  2. Activate Virtual Environment:

    • Mac/Linux:
      source venv/bin/activate
    • Windows:
      venv\Scripts\activate
  3. Install Dependencies:

    • Run the following command:
      pip install -r requirements.txt
  4. Set Up Environment Variables:

    • Create a .streamlit folder in the root directory, followed by a secrets.toml inside the folder .
    • Add the following variables:
      OPENAI_API_KEY=your OpenAI API key
      GROQ_API_KEY=your Groq API key
      BREVO_API_KEY = your Brevo API key
      MONGO_URI = your atlas mongo uri when deployed. mongodb://localhost:27017 when deployed     
      

MongoDB Setup

  1. Download MongoDB Compass (GUI):

  2. Create New Connection in Compass:

    • Under the new connection, create 3 databases user_data, chat_app, and model_data.
    • Inside user_data, create the following collections: users, tokens, courses
    • Inside chat_app create chats collection
    • Inside model_data create completions, examples, model_names, system_prompts
    • Add Admin Test User :
    {
      "_id": "67f96897463b61af9e061796",
      "fname": "Test",
      "lname": "Admin",
      "email": "tadmin@fiu.edu",
      "user_type": "admin",
      "password": "af87163f8788dca36b0a26ad2912e3df0c38079da34616b61821a839a7baa0ff",
      "salt": "fd8297b5a4ff28bdf3cf0d5085842306"
    }
    
    
  • Add data from google drive : Google Drive
  • Once deployed on AWS you would add Professor Malik and Gilal. For the password hashing you need a sha 256 salt generator similar to above.

Feature Branch Workflow

  1. Create a New Branch:

    • Run the following command:
      git checkout -b feature-branch-name
  2. Make Changes to the Code:

    • Edit your code as needed.
  3. Commit the Changes:

    • Run the following command:
      git commit -m "commit message"
  4. Push the Changes:

    • Run the following command:
      git push origin feature-branch-name
  5. Create a Pull Request:

    • Open your repository on GitHub and create a pull request for your feature branch.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages