This repository contains a web application that uses Vite for the front end and Flask for the back end. This setup combines the fast development experience of Vite with the powerful backend capabilities of Flask.
- Node.js (v14 or later)
- Python (v3.8 or later)
- pip (Python package installer)
-
Clone the repository:
git clone https://github.com/adityab894/depression.git cd Mindfulmoments -
Install dependencies:
npm install
-
Build the front end:
npm run npm run dev
Split the terminal in code editor or opne new terminal without closing the previous one...
-
Navigate to the backend directory:
cd server -
Install dependencies:
pip install -r requirements.txt or python package_installer.py // file is there which has all the requirements.....
vite-flask-app/
├── frontend/
│ ├── public/
│ ├── src/
│ ├── index.html
│ ├── package.json
│ └── vite.config.js
├── backend/
│ ├── app/
│ │ ├── __init__.py
│ │ ├── routes.py
│ ├── venv/
│ ├── requirements.txt
│ └── run.py
└── README.md
- frontend/: Contains the Vite front-end code.
- backend/: Contains the Flask back-end code.
- venv/: Python virtual environment (should be excluded from version control).
- requirements.txt: Lists the Python dependencies.
Vite configuration can be found and modified in frontend/vite.config.js.
Flask configuration can be found and modified in backend/app/__init__.py.
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch). - Commit your changes (
git commit -m 'Add some feature'). - Push to the branch (
git push origin feature-branch). - Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.