Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ramonbecker/appcharts


https://github.com/ramonbecker/appcharts

Last synced: 3 days ago
JSON representation

Awesome Lists containing this project

README

        

# Charts
## :information_source: Information

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.

## ⚠️ Prerequisite

![](https://img.shields.io/badge/Bootstrap-563D7C?style=for-the-badge&logo=bootstrap&logoColor=white)

![](https://img.shields.io/badge/Python-3776AB?style=for-the-badge&logo=python&logoColor=white)

![](https://img.shields.io/badge/Django-092E20?style=for-the-badge&logo=django&logoColor=white)

![](https://img.shields.io/badge/MySQL-00000F?style=for-the-badge&logo=mysql&logoColor=white)

![](https://img.shields.io/badge/jQuery-0769AD?style=for-the-badge&logo=jquery&logoColor=white)

![](https://img.shields.io/badge/ChartJS-FF6384?style=for-the-badge&logo=chart-dot-js&logoColor=white)

## Demo

![grafico](https://user-images.githubusercontent.com/44611131/120378359-b33f2200-c2f4-11eb-8b11-9f708f461dd3.png)

## ⚙️ Creating virtual machine

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```
```

## ⚙️ Installing MySQL

Enter the following commands in the terminal.

```
sudo apt update
sudo apt install mysql-server

```
### Configuring MySQL

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.

### Testing MySQL

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
```
## :rocket: Installation

![](https://img.shields.io/badge/Linux-FCC624?style=for-the-badge&logo=linux&logoColor=black)

```sh
git clone https://github.com/RamonBecker/AppCharts.git
```

![](https://img.shields.io/badge/Windows-0078D6?style=for-the-badge&logo=windows&logoColor=white)

```sh
git clone https://github.com/RamonBecker/AppCharts.git
or install github https://desktop.github.com/

```

## :zap: Technologies

- Python
- Chart.js
- JQuery

## :memo: Developed features

- [x] Generating data in the chart;
- [x] Graph creation for the generated data.

## :technologist: Author

By Ramon Becker 👋🏽 Get in touch!

[github](https://github.com/RamonBecker) [linkedin](https://www.linkedin.com/in/https://www.linkedin.com/in/ramon-becker-da-silva-96b81b141//)
![Gmail Badge](https://img.shields.io/badge/[email protected]?style=flat-square&logo=Gmail&logoColor=white&link=mailto:[email protected])