Skip to content
This repository has been archived by the owner on Jul 7, 2020. It is now read-only.

umbraco/Belle

Repository files navigation

#Belle

##Repository has been moved The belle client files have now been merged into the Umbraco-Cms repository, and is available in the 7.0.0 branch: https://github.com/umbraco/Umbraco-CMS/tree/7.0.0

Umbraco 7 UI prototype, codename "Belle" Built on AngularJS, RequireJS and Twitter Bootstrap

##Introduction Slides from the initial demonstration of Belle done at the Umbraco DK Fest can be found here:

http://rawgithub.com/umbraco/Belle/master/Presentation/index.html

##Running the prebuilt site

###Windows Right-click the /build folder and choose "open in webmatrix", run the website in webmatrix and browse to localhost:xxxx/Belle/, this should display the Belle login screen

###OSX Open a terminal inside the "/build" folder and run the command:

python -m SimpleHTTPServer 8080

This will start a local webserver, hosting the site on localhost:8080 browse to localhost:8080/Belle/ which should display the belle login screen.

##Uing the dev environment The dev environment is tad more tricky to get running, since it depends on a number of unit tests and automated tools, to produce the contents of the /build folder

The dev environment is cross platform, so will work on both osx and windows, and do not currently have any dependencies to .net

###Install node.js We need node to run tests and automated less compiling and other automated tasks. go to http://nodejs.org. Node.js is a powerfull javascript engine, which allows us to run all our tests and tasks written in javascript locally.

note: On windows you might need to restart explorer.exe to register node.

###Install dependencies Next we need to install all the required packages. This is done with the package tool, included with node.js, open /Umbraco.Belle.Client in cmd.exe or osx terminal and run the command:

npm install

this will fetch all needed packages to your local machine.

###Install grunt globally Grunt is a task runner for node.js, and we use it for all automated tasks in the build process. For convenience we need to install it globally on your machine, so it can be used directly in cmd.exe or the terminal.

So run the command:

npm install grunt-cli -g

note: On windows you might need to restart explorer.exe to register the grunt cmd.

note: On OSX you might need to run:

sudo npm install grunt-cli -g

Now that you have node and grunt installed, you can open /Umbraco.Belle.Client in either cmd.exe or terminal and run:

grunt dev

This will build the site, merge less files, run tests and create the /Build folder, launch the web browser and monitor changes.

###Automated builds and tests

grunt dev will continue to run in the background monitoring changes to files. When changes are detected it will rebuild the JS and also run the unit tests.

##Limitations The current prototype simply uses in-memory storage, so no database dependencies. It is aimed at showing UI, not a complete functional client-server setup.

##Project Structure

All project files are located in /umbraco.belle.client/src which only contains client-side files, everything related to asp.net are in umbraco.bell

after building Belle files are located in /build/belle, with all files following AngularJs conventions:

###Folders

  • /belle/lib: Dependencies
  • /belle/js: Application javascript files
  • /belle/views/common/: Main application views
  • */belle/views/[sectioname]/pagename Editors html
  • /belle/views/propertyeditors: Property Editors html

###Files

  • /belle/js/app.js: Main umbraco application / modules
  • /belle/js/main.js: require.js configuration for dependencies
  • /belle/js/routes.js: Application routes
  • /belle/js/umbraco.controllers.js: Application controllers
  • /belle/js/umbraco.services.js: Application services
  • /belle/js/umbraco.directives.js: Application directives
  • /belle/js/umbraco.resources.js: Application resources, like content, media, users, members etc

##Getting started The current app is built, following conventions from angularJs and bootstrap. To get started with the applicaton you will need to atleast know the basics of these frameworks

###AngularJS

About

Umbraco 7 UI prototype, codename "Belle" Built on AngularJS, RequireJS and Twitter Bootstrap

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published