{"size": 800, "ext": "js", "max_stars_repo_path": "app/Bootstrap.js", "max_stars_repo_name": "grindjs/example-web", "max_stars_repo_stars_event_min_datetime": "2016-09-20T16:42:07.000Z", "max_stars_repo_stars_event_max_datetime": "2016-09-20T16:42:07.000Z", "max_issues_repo_path": "app/Bootstrap.js", "max_issues_repo_name": "grindjs/example-web", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/Bootstrap.js", "max_forks_repo_name": "grindjs/example-web", "max_forks_repo_forks_event_min_datetime": "2017-01-30T19:53:45.000Z", "max_forks_repo_forks_event_max_datetime": "2017-01-30T19:53:45.000Z"}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 25.8064516129, "max_line_length": 45, "alphanum_fraction": 0.7725}
import { Application } from 'grind-framework'

import { AssetsProvider } from 'grind-assets'
import { CacheProvider } from 'grind-cache'
import { DatabaseProvider } from 'grind-db'
import { HtmlProvider } from 'grind-html'
import { OrmProvider } from 'grind-orm'
import { ViewProvider } from 'grind-view'

import 'App/Providers/RoutesProvider'
import 'App/Errors/ErrorHandler'

export function Bootstrap(kernelClass) {
	const app = new Application(kernelClass, {
		errorHandlerClass: ErrorHandler,
	})

	// Framework providers
	app.providers.add(AssetsProvider)
	app.providers.add(CacheProvider)
	app.providers.add(DatabaseProvider)
	app.providers.add(HtmlProvider)
	app.providers.add(OrmProvider)
	app.providers.add(ViewProvider)

	// App providers
	app.providers.add(RoutesProvider)

	return app
}
