The project aims to demonstrate a simple chart generation using the Chart.js library. For more information on using the library, visit: https://www.chartjs.org/docs/latest/. The random library was used to generate the data in the graph.
Create your virtual machine
python3 -m venv venv
Activate your virtual machine
source venv/bin/activate
After the virtual machine is activated, install the project dependencies
pip install -r requirements.txt```
Enter the following commands in the terminal.
sudo apt update
sudo apt install mysql-server
For new installations, you will want to run the security script that is included. This changes some of the less secure default options for things like root logins and example users. Enter the command below.
sudo mysql_secure_installation
This will take you through a series of prompts where you can make some changes to the security options of your MySQL installation. The first prompt will ask you if you want to configure the Validate Password Plugin, which can be used to test the strength of your MySQL password. Regardless of your choice, the next prompt will be to set the password for the MySQL root user. Sign in and then confirm a secure password of your choice.
From there, you can press Y and then ENTER to accept the default answers for all subsequent questions. This will remove some anonymous users and the test database, disable remote login for root, and load all of these new rules so that MySQL immediately respects the changes you made.
To see if MYSQL is running, type the following command.
systemctl status mysql.service
If MySQL is not running, you can start it with the following command.
sudo systemctl start mysql
Now try to connect your root user to MySQL.
mysql -u root -p
git clone https://github.com/RamonBecker/AppCharts.git
git clone https://github.com/RamonBecker/AppCharts.git
or install github https://desktop.github.com/
- Python
- Chart.js
- JQuery
- Generating data in the chart;
- Graph creation for the generated data.
By Ramon Becker 👋🏽 Get in touch!