LMS
- Clone Project
- Ensure you have installed Python3, pip and vitualenv
- Ensure Python3 is added to the PATH variable
- Navigate into Server and run the following commands
- python3 -m venv venv
- source venv/bin/activate
- Once the virtual environment is activate within the given folder, run the following command
- pip install -r requirements.txt
- Run Mysql DB instance locally or in a Docker container exposing port 3306
- Run the following commands in MySQL(terminal):
- UPDATE mysql.user SET Password = PASSWORD(‘your_password’) WHERE User = ‘your_user’;
- FLUSH PRIVILEGES;
- CREATE DATABASE test_db; Note: Ensure there is no existing DB by that name
- If all dependencies are installed successfully in step 5, run 'flask run'
- Server should be up and table is added to the 'test_db' database