Note: The current code base uses Ember 0.9.8.1 and this is obsolete. This project will be branched off for reference and master will be updated to use Ember 1.0 pre-release and later to 1.0 final when it's released.
This is a sample application for learning purposes which is intended to demonstrate how to use Ember.js implemeting route management. The goal is to create a small CRUD implementation to demonstrate common practices of both Ember and Web API.
Note: This is under development and will probably remain under development forever as new bits are released.
Why? Because .NET people also deserve Ember.js :)
Enabling PUT & DELETE
- Open the
applicationHost.config
file located in the directory%userprofile%\documents\IISExpress\config
. - Scroll down to the bottom of the file and find a handler that looks like this:
<add name="ExtensionlessUrl-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG"
type="System.Web.Handlers.TransferRequestHandler"
preCondition="integratedMode,runtimeVersionv4.0" />
- Add
PUT
andDELETE
in theverb
attribute so your tag now looks like this:
<add name="ExtensionlessUrl-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE"
type="System.Web.Handlers.TransferRequestHandler"
preCondition="integratedMode,runtimeVersionv4.0" />
For IIS configuration, follow this link.
Steps to Run
- Before running the application, go to global.asax.cs and set the following line to
Application_Start
method:Database.SetInitializer<SomeDBContext>(new CreateDatabaseIfNotExists<SomeDBContext>());
- Add a new connection in Visual Studio to your database and open the properties of the connection and copy the
connectionString
- Change your connection string in the
web.config
file<add name="SomeDBContext" connectionString="CONNECTION STRING GOES HERE" providerName="System.Data.SqlClient" />
- Open the Package Management Console and run the first migration:
Add-Migration init
- In your
Migrations
directory you should see a file been created with the init sulfix; - Still in the PM Console, run the command
Update-Database
to update and seed the database - Run the application
Technologies/Dependencies