AI coach DISC is a web application that helps users to understand their personality type and improve their communication skills. The application is based on the DISC model, which is a behavior assessment tool based on the work of psychologist William Moulton Marston. The DISC model classifies four personality types: Dominance, Influence, Steadiness, and Conscientiousness.
- Python 3.6 or higher
- Poetry
- Node.js & npm
- Pre-commit
To set up the project, run the following command:
make init
To run the backend and frontend servers, follow the steps below.
To start the Flask backend in development mode:
make backend
To start the React frontend:
make frontend
If you need to seed the database with initial data, run
make seed-db
To run the tests and linters, execute the following command:
make pre-commit
make prettier
https://github.com/baibhavsagar/Deploy-Flask-App-on-AWS-EC2-Instance
Run:
poetry export --without-hashes -o backend/requirements.txt
Copy with FileZilla all files to EC2 instance nd run the following commands:
sudo yum update -y
sudo yum -y install python-pip
sudo yum install poppler-utils
pip install gunicorn
cd backend
pip install -r requirements.txt
cd ..
gunicorn -b 0.0.0.0:8000 backend.app:app --timeout 260
Tmux:
tmux a
gunicorn -b 0.0.0.0:8000 backend.app:app
Amazon Linux NGINX:
sudo yum install nginx
sudo systemctl start nginx
sudo systemctl enable nginx
sudo nano -p /etc/nginx/conf.d/default.conf
sudo systemctl restart nginx
sudo systemctl status nginx