Skip to content

AndreiKevin/empathy-depression

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

This is a simple depression recommendation system with a NextJS React frontend and a Django Python backend. It uses Aceternity components, Shadcn components, and Tailwind CSS for the UI.

The trained models are in the models folder. The frontend is in the my-app folder and the backend is in the root and example folder.

How to Run locally

Django Backend Setup

  1. Django Frontend Setup: From the root directory, create a venv and install the requirements
# Windows:
py -m venv myworld

# Unix/MacOS:
python -m venv myworld
  1. Django Frontend Setup: Activate the venv
# Windows:
.\myworld\Scripts\activate
# Unix/MacOS:
source .venv/bin/activate 
  1. Django Frontend Setup: Install the requirements
pip install -r requirements.txt
  1. Django Frontend Setup: Run the server
python manage.py runserver

Note: Make sure the Django server runs on http://127.0.0.1:8000/

NextJS Frontend Setup

  1. Open a new terminal (keep the Django server running in the other terminal)

  2. NextJS Frontend Setup: Change directory to the frontend

cd my-app
  1. NextJS Frontend Setup: Install the dependencies
npm install
  1. NextJS Frontend Setup: Run the server
npm run dev