Clone the Repo git clone https://github.com/Stars-AI-tutor/STARS_Tutor.git
-
Create Virtual Environment:
- Run the following command:
python3 -m venv venv
- Run the following command:
-
Activate Virtual Environment:
- Mac/Linux:
source venv/bin/activate - Windows:
venv\Scripts\activate
- Mac/Linux:
-
Install Dependencies:
- Run the following command:
pip install -r requirements.txt
- Run the following command:
-
Set Up Environment Variables:
- Create a
.streamlitfolder 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
- Create a
-
Download MongoDB Compass (GUI):
-
Create New Connection in Compass:
- Under the new connection, create 3 databases
user_data,chat_app, andmodel_data. - Inside
user_data, create the following collections:users,tokens,courses - Inside
chat_appcreatechatscollection - Inside
model_datacreatecompletions,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" } - Under the new connection, create 3 databases
- 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.
-
Create a New Branch:
- Run the following command:
git checkout -b feature-branch-name
- Run the following command:
-
Make Changes to the Code:
- Edit your code as needed.
-
Commit the Changes:
- Run the following command:
git commit -m "commit message"
- Run the following command:
-
Push the Changes:
- Run the following command:
git push origin feature-branch-name
- Run the following command:
-
Create a Pull Request:
- Open your repository on GitHub and create a pull request for your feature branch.