Adwise is a full-stack application repository, likely created as part of the Pan-IIT Hackathon. The repository contains both backend and frontend code, as well as sample data for personalization and user targeting.
Adwise/
├── backend/
│ ├── adwise/
│ ├── core/
│ ├── users/
│ ├── video_generator/
│ ├── manage.py
│ ├── requirements.txt
│ ├── PyWhatKit_DB.txt
│ └── upload_video.py-oauth2.json
├── frontend/
│ ├── public/
│ ├── src/
│ ├── index.html
│ ├── package.json
│ ├── package-lock.json
│ ├── tailwind.config.js
│ ├── vite.config.js
│ ├── eslint.config.js
│ ├── postcss.config.cjs
│ └── README.md
├── sample_personalization/
│ ├── script.py
│ ├── target_audience_car_loan.csv
│ ├── target_audience_health_insurance.csv
│ ├── target_audience_home_loan.csv
│ ├── target_audience_life_insurance.csv
│ ├── target_audience_personal_loan.csv
│ └── user_summary_data_2_days_times.csv
├── PyWhatKit_DB.txt
└── README.md
The backend appears to be a Python-based project (possibly Django or Flask), containing:
- manage.py: Entry point for backend management tasks.
- requirements.txt: Lists Python packages required to run the backend.
- adwise/, core/, users/, video_generator/: Likely contain the main application, business logic, user management, and video generation modules.
- PyWhatKit_DB.txt: Database or data file possibly used for WhatsApp or messaging automation.
- upload_video.py-oauth2.json: OAuth2 credentials for video uploads (ensure this is not exposed in production).
The frontend is a React application bootstrapped with Vite. Key points:
- Minimal setup for React with HMR and ESLint.
- Uses @vitejs/plugin-react and @vitejs/plugin-react-swc for fast refresh and modern build tooling.
- Main configuration files include
package.json,vite.config.js,tailwind.config.js, and ESLint config.
See frontend/README.md for more details.
The sample_personalization folder provides example scripts and data:
- script.py: Likely processes or demonstrates personalization logic.
- CSV files for various target audiences: e.g., car loan, health insurance, home loan, life insurance, personal loan.
- user_summary_data_2_days_times.csv: User analytics or summary data.
- Python 3.x (for backend)
- Node.js and npm (for frontend)
cd backend
python -m venv venv
source venv/bin/activate # or venv\Scripts\activate on Windows
pip install -r requirements.txt
# Run backend (example, adjust as per framework)
python manage.py runservercd frontend
npm install
npm run dev