Coder Social home page Coder Social logo

anychart-integrations / asp-net-core-mvc-mysql-dashboard Goto Github PK

View Code? Open in Web Editor NEW
7.0 6.0 5.0 50 KB

This example shows how to build basic Sales Dashboard using Anychart charting library with ASP.NET Core MVC (C#) and MySQL database.

Home Page: https://www.anychart.com

License: Apache License 2.0

C# 6.12% SQLPL 93.70% CSS 0.18%

asp-net-core-mvc-mysql-dashboard's Introduction

AnyChart - Robust JavaScript/HTML5 Chart library for any project

ASP.NET Core MVC C# basic dashboard template

This example shows how to build basic Sales Dashboard using 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:
MySQL download page and installation instructions to setup MySQL;
ASP.NET Core page to install ASP.NET Core.

To start this example run commands listed below.

Clone the repository from github.com to your working directory:

$ git clone [email protected]:anychart-integrations/asp-net-core-mvc-mysql-dashboard.git

Open cmd console in asp-net-core-mvc-mysql-dashboard 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-dashboard folder:

$  dotnet restore
$  dotnet run

Workspace

Your workspace should look like:

asp-net-core-mvc-mysql-dashboard/
	Controllers/
		ChartController.cs		# main controller
	Models/
		Sale.cs				# Sale class
		SalesDBContext.cs		# DB data provider
	Views/
		Chart/
			Index.cshtml		# html template with main dashboard JS code
	wwwroot/
		css/
			style.css			# css style
	appsettings.Development.json
	appsettings.json
	asp-net-core-mvc-mysql-dashboard.csproj 	# project config
	bower.json
	bundleconfig.json
	database_backup.sql			# sql code and data
	LISENCE
	Program.cs
	README.md
	Startup.cs

Technologies

Language - C#
Web framework - ASP.NET Core
HTML Tepmlate - Razor
Database - MySQL

Further Learning

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.
  • 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.

If you have any questions regarding licensing - please contact us. [email protected]

Analytics

asp-net-core-mvc-mysql-dashboard's People

Contributors

grasshoppergn avatar ilevd avatar romanlubushkin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.