Spring307-8amMWF-Team2
Initial Setup for Backend
- sudo apt update
- sudo apt install python3
- sudo apt install python3-pip
- pip3 install flask
Initial Setup for Frontend
- sudo apt update
- sudo apt install nodejs
- sudo apt install npm
Ensure virtual environment is setup
pip3 install virtualenv
Before any running or developing the backend :
Activate virtual environment in 'Backend' Directory:
On Mac / Linux:
source venv/bin/activate
on Windows:
venv\Scripts\activate
To deavtivate virtual environment
deactivate
Initial Setup for Database
- sudo mysql -u root
- in mysql> CREATE USER 'Mindify_Admin'@'localhost' IDENTIFIED BY 'Mindify404';
- in mysql> CREATE DATABASE mindify_db;
- in mysql> GRANT ALL PRIVILEGES ON mindify_db . * TO 'Mindify_Admin'@'localhost';
Then inside of backend directory, run the following commands in terminal:
- flask db init
- flask db migrate
- flask db upgrade
to check for success:
- sudo mysql -u root
- in mysql> use mindify_db;
- in mysql> show tables;