git clone git@github.com:AryanK1511/StickTator.git
cd StickTatorThe frontend is built with Next.js. Follow these steps to set it up:
- Navigate to the frontend directory:
cd frontend- Install dependencies:
npm install- Create a
.env.localfile in the frontend directory with the following configuration:
GOOGLE_CLIENT_ID="your_google_client_id"
GOOGLE_CLIENT_SECRET="your_google_client_secret"
NEXTAUTH_URL='http://localhost:3000/'
NEXTAUTH_SECRET='your_nextauth_secret'
NEXT_PUBLIC_BACKEND_URL='127.0.0.1:8000'- Start the development server:
npm run devThe frontend will be available at http://localhost:3000.
The backend is powered by FastAPI. Follow these steps to set it up:
- Navigate to the backend directory:
cd backend- Create and activate a virtual environment:
python3 -m venv venv
source venv/bin/activate # On Windows, use: venv\Scripts\activate- Install dependencies:
pip3 install -r requirements.txt- Create a
.envfile in the backend directory with the following configuration:
LOG_LEVEL="DEBUG"
MONGO_URI="your_mongodb_connection_string"
AWS_ACCESS_KEY_ID="your_aws_access_key"
AWS_SECRET_ACCESS_KEY="your_aws_secret_key"
AWS_DEFAULT_REGION="your_aws_region"
S3_BUCKET_NAME="your_s3_bucket_name"
OPENAI_API_KEY="your_openai_api_key"- Start the backend server:
fastapi dev app/main.pyThe backend API will be available at http://localhost:8000.
The USB client component can be run directly from a USB drive. Simply copy the client files to your USB drive and insert it into the target computer.