Follow the instructions below to set up the project structure.
chmod +x setup.sh
./setup.shBefore running the script, ensure the correct OS type is set:
- Linux:
OS_TYPE="linux" - macOS:
OS_TYPE="macos" - Windows:
OS_TYPE="windows"
This ensures the correct commands are used when activating the virtual environment.
If Git is already initialized in the repository (.git folder exists), the script skips Steps 1-8 and moves directly to installing dependencies. Otherwise, it performs the full setup.
mkdir EECS_449
cd EECS_449
git init
git remote add origin https://github.com/Needless2Say/EECS_449_App.git
git remote -v
git branch -M main
git branch --set-upstream-to=origin/main main
git pull --rebase --allow-unrelated-histories origin maincd caloriq
npm installcd ..mkdir -p fastapi
cd fastapi
python3.12 -m venv venv# Linux/macOS
source venv/bin/activate
# Windows
venv\Scripts\activatepip install -r requirements.txtOnce the setup is complete, you can start developing by navigating into the caloriq directory and running the Next.js development server:
cd caloriq
npm run devThis will start the application locally at http://localhost:3000/.
If you encounter any issues while pulling from the remote repository, try running:
git pull --rebase --allow-unrelated-histories origin mainIf pip install is not using the correct Python environment, verify it with:
which python
which pip
pip -VIf you need further assistance, reach out to the repository maintainers.
Happy coding! 🚀