<commit_before>[<img src="https://cdn.anychart.com/images/logo-transparent-segoe.png?2" width="234px" alt="AnyChart - Robust JavaScript/HTML5 Chart library for any project">](https://www.anychart.com)
# ASP.NET Core MVC C# basic template

This example shows how to use Anychart charting library with ASP.NET Core MVC (C#) and MySQL database.

## Running
This example uses .NET Core 1.0.1 and MySQL 5.6.
If you miss some installations, please, visit:<br />
[MySQL download page](https://dev.mysql.com/downloads/installer/) and [installation instructions](http://dev.mysql.com/doc/refman/5.7/en/installing.html) to setup MySQL;<br />
[ASP.NET Core page](https://www.asp.net/core) to install ASP.NET Core.<br />

To start this example run commands listed below.

Clone the repository from github.com to your working directory:
```
$ git clone <EMAIL>:anychart-integrations/asp-net-core-mvc-mysql-template.git
```

Open cmd console in `asp-net-core-mvc-mysql-template` folder and set up MySQL database, use -u -p flags to provide username and password:
```
$  "[YOUR_PATH_TO_MYSQL]\bin\mysql.exe" -u[USER_NAME] -p < database_backup.sql
e.g:  
$  "C:\Program Files\MySQL\MySQL Server 5.6\bin\mysql.exe" -uroot -p < database_backup.sql
```

Open project in Visual Studio or Visual Studio Code.

Run application using Run button.

Or you can use next commands, be sure you're in `asp-net-core-mvc-mysql-template` folder:
```
$  dotnet restore
$  dotnet run
```

## Workspace
Your workspace should look like:
```
asp-net-core-mvc-mysql-template/
	Controllers/
		ChartController.cs		# main controller
	Models/
		Fruit.cs				# Fruit class
		FruitDBContext.cs		# DB data provider
	Views/
		Chart/
			Index.cshtml		# html template
	wwwroot/
		css/
			style.css			# css style
	appsettings.Development.json
	appsettings.json
	asp-net-core-mvc-mysql-template.csproj 	# project config
	bower.json
	bundleconfig.json
	database_backup.sql			# sql code
	LISENCE
	Program.cs
	README.md
	Startup.cs
```

## Technologies
Language - [C#](https://msdn.microsoft.com/en-us/library/ms228593.aspx)<br />
Web framework - [ASP.NET Core](https://www.asp.net/core)<br />
HTML Tepmlate - [Razor](https://www.asp.net/web-pages/overview/getting-started/introducing-razor-syntax-c)<br />
Database - [MySQL](https://www.mysql.com/)<br />

## Further Learning
* [Documentation](https://docs.anychart.com)
* [JavaScript API Reference](https://api.anychart.com)
* [Code Playground](https://playground.anychart.com)
* [Technical Support](https://www.anychart.com/support)

## License
AnyChart ASP.NET Core/C#/MySQL integration sample includes two parts:
- Code of the integration sample that allows to use Javascript library (in this case, AnyChart) with ASP.NET Core framework, C# language and MySQL database. You can use, edit, modify it, use it with other Javascript libraries without any restrictions. It is released under [Apache 2.0 License](https://github.com/anychart-integrations/asp-net-core-mvc-mysql-template/blob/master/LICENSE).
- AnyChart JavaScript library. It is released under Commercial license. You can test this plugin with the trial version of AnyChart. Our trial version is not limited by time and doesn't contain any feature limitations. Check details [here](https://www.anychart.com/buy/).

If you have any questions regarding licensing - please contact us. <<EMAIL>><commit_msg>Readme updated<commit_after>[<img src="https://cdn.anychart.com/images/logo-transparent-segoe.png?2" width="234px" alt="AnyChart - Robust JavaScript/HTML5 Chart library for any project">](https://www.anychart.com)
# ASP.NET Core MVC C# basic template

This example shows how to use Anychart charting library with ASP.NET Core MVC (C#) and MySQL database.

## Running
This example uses .NET Core 1.0.1 and MySQL 5.6.
If you miss some installations, please, visit:<br />
[MySQL download page](https://dev.mysql.com/downloads/installer/) and [installation instructions](http://dev.mysql.com/doc/refman/5.7/en/installing.html) to setup MySQL;<br />
[ASP.NET Core page](https://www.asp.net/core) to install ASP.NET Core.<br />

To start this example run commands listed below.

Clone the repository from github.com to your working directory:
```
$ git clone <EMAIL>:anychart-integrations/asp-net-core-mvc-mysql-template.git
```

Open cmd console in `asp-net-core-mvc-mysql-template` folder and set up MySQL database, use -u -p flags to provide username and password:
```
$  "[YOUR_PATH_TO_MYSQL]\bin\mysql.exe" -u[USER_NAME] -p < database_backup.sql
e.g:  
$  "C:\Program Files\MySQL\MySQL Server 5.6\bin\mysql.exe" -uroot -p < database_backup.sql
```

Open project in Visual Studio or Visual Studio Code.

Run application using Run button.

Or you can use next commands, be sure you're in `asp-net-core-mvc-mysql-template` folder:
```
$  dotnet restore
$  dotnet run
```

## Workspace
Your workspace should look like:
```
asp-net-core-mvc-mysql-template/
	Controllers/
		ChartController.cs		# main controller
	Models/
		Fruit.cs				# Fruit class
		FruitDBContext.cs		# DB data provider
	Views/
		Chart/
			Index.cshtml		# html template
	wwwroot/
		css/
			style.css			# css style
	appsettings.Development.json
	appsettings.json
	asp-net-core-mvc-mysql-template.csproj 	# project config
	bower.json
	bundleconfig.json
	database_backup.sql			# sql code
	LISENCE
	Program.cs
	README.md
	Startup.cs
```

## Technologies
Language - [C#](https://msdn.microsoft.com/en-us/library/ms228593.aspx)<br />
Web framework - [ASP.NET Core](https://www.asp.net/core)<br />
HTML Tepmlate - [Razor](https://www.asp.net/web-pages/overview/getting-started/introducing-razor-syntax-c)<br />
Database - [MySQL](https://www.mysql.com/)<br />

## Further Learning
* [Documentation](https://docs.anychart.com)
* [JavaScript API Reference](https://api.anychart.com)
* [Code Playground](https://playground.anychart.com)
* [Technical Support](https://www.anychart.com/support)

## License
AnyChart ASP.NET Core/C#/MySQL integration sample includes two parts:
- Code of the integration sample that allows to use Javascript library (in this case, AnyChart) with ASP.NET Core framework, C# language and MySQL database. You can use, edit, modify it, use it with other Javascript libraries without any restrictions. It is released under [Apache 2.0 License](https://github.com/anychart-integrations/asp-net-core-mvc-mysql-template/blob/master/LICENSE).
- AnyChart JavaScript library. It is released under Commercial license. You can test this plugin with the trial version of AnyChart. Our trial version is not limited by time and doesn't contain any feature limitations. Check details [here](https://www.anychart.com/buy/).

If you have any questions regarding licensing - please contact us. <<EMAIL>>

[![Analytics](https://ga-beacon.appspot.com/UA-228820-4/Integrations/asp-net-core-mvc-mysql-template?pixel&useReferer)](https://github.com/igrigorik/ga-beacon)
{'fraction_non_alphanumeric': 0.12714078374455734, 'fraction_numerical': 0.007402031930333817, 'mean_word_length': 4.25629290617849, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 25, 'https://': 30, 'lorem ipsum': 0, 'www.': 16, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3241398', 'n_tokens_mistral': 2323, 'n_tokens_neox': 2176, 'n_words': 635}