Skip to content

Commit

Permalink
Updated Version of MyNotes
Browse files Browse the repository at this point in the history
MyNotes 2012 is an updated/re-worked version of the MyNotes sample that
goes in a slightly different direction.  Rather than have two
databases--one for the event store and one for the read model--MyNotes
2012 focuses on having a single database, but with the possibility for
separate schemas.  MyNotes 2012 also updates the technology stack
slightly--eliminating edmx files in the read model in favor of POCOs,
using MVC4 for the web UI, and setting the root namespace for all the
assembly projects to "MyNotes".
  • Loading branch information
theBoringCoder committed May 13, 2013
1 parent 8a5bfc6 commit a121b20
Show file tree
Hide file tree
Showing 330 changed files with 195,662 additions and 0 deletions.
76 changes: 76 additions & 0 deletions Samples/MyNotes 2012/MyNotes 2012.sln
@@ -0,0 +1,76 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{42A85FDD-682B-4A1A-866B-9A5F884AA6B2}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyNotes.Commands", "src\MyNotes.Commands\MyNotes.Commands.csproj", "{13F7E151-60CE-45DB-B550-584BB387A4D2}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyNotes.Events", "src\MyNotes.Events\MyNotes.Events.csproj", "{77193289-0CC7-455F-97DE-F624704A3A5C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyNotes.ReadModel", "src\MyNotes.ReadModel\MyNotes.ReadModel.csproj", "{387070D4-0B68-4C1B-BA6F-F5E4D36CFE76}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyNotes.Domain", "src\MyNotes.Domain\MyNotes.Domain.csproj", "{CEE5208B-411C-4DA8-956A-8ADDFC01F640}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyNotes.Denormalizers", "src\MyNotes.Denormalizers\MyNotes.Denormalizers.csproj", "{AD4299B0-414C-41B3-B703-A231E0A1CC03}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyNotes.ApplicationService", "src\MyNotes.ApplicationService\MyNotes.ApplicationService.csproj", "{47699601-28F4-4CDE-A50F-2AE9C283223E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyNotes.Web.MVC4", "src\MyNotes.Web.MVC4\MyNotes.Web.MVC4.csproj", "{09A3C99B-7518-4FDF-8625-589EAB112B82}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "sqlexpress", "sqlexpress", "{BBEDB47C-10D9-46D2-8D9E-68C7F9FD8EEC}"
ProjectSection(SolutionItems) = preProject
sqlexpress\MyNotesReadModel.sql = sqlexpress\MyNotesReadModel.sql
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{82C043AA-2536-4D6D-808A-30A094F75B11}"
ProjectSection(SolutionItems) = preProject
README.md = README.md
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{13F7E151-60CE-45DB-B550-584BB387A4D2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{13F7E151-60CE-45DB-B550-584BB387A4D2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{13F7E151-60CE-45DB-B550-584BB387A4D2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{13F7E151-60CE-45DB-B550-584BB387A4D2}.Release|Any CPU.Build.0 = Release|Any CPU
{77193289-0CC7-455F-97DE-F624704A3A5C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{77193289-0CC7-455F-97DE-F624704A3A5C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{77193289-0CC7-455F-97DE-F624704A3A5C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{77193289-0CC7-455F-97DE-F624704A3A5C}.Release|Any CPU.Build.0 = Release|Any CPU
{387070D4-0B68-4C1B-BA6F-F5E4D36CFE76}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{387070D4-0B68-4C1B-BA6F-F5E4D36CFE76}.Debug|Any CPU.Build.0 = Debug|Any CPU
{387070D4-0B68-4C1B-BA6F-F5E4D36CFE76}.Release|Any CPU.ActiveCfg = Release|Any CPU
{387070D4-0B68-4C1B-BA6F-F5E4D36CFE76}.Release|Any CPU.Build.0 = Release|Any CPU
{CEE5208B-411C-4DA8-956A-8ADDFC01F640}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CEE5208B-411C-4DA8-956A-8ADDFC01F640}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CEE5208B-411C-4DA8-956A-8ADDFC01F640}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CEE5208B-411C-4DA8-956A-8ADDFC01F640}.Release|Any CPU.Build.0 = Release|Any CPU
{AD4299B0-414C-41B3-B703-A231E0A1CC03}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AD4299B0-414C-41B3-B703-A231E0A1CC03}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AD4299B0-414C-41B3-B703-A231E0A1CC03}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AD4299B0-414C-41B3-B703-A231E0A1CC03}.Release|Any CPU.Build.0 = Release|Any CPU
{47699601-28F4-4CDE-A50F-2AE9C283223E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{47699601-28F4-4CDE-A50F-2AE9C283223E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{47699601-28F4-4CDE-A50F-2AE9C283223E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{47699601-28F4-4CDE-A50F-2AE9C283223E}.Release|Any CPU.Build.0 = Release|Any CPU
{09A3C99B-7518-4FDF-8625-589EAB112B82}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{09A3C99B-7518-4FDF-8625-589EAB112B82}.Debug|Any CPU.Build.0 = Debug|Any CPU
{09A3C99B-7518-4FDF-8625-589EAB112B82}.Release|Any CPU.ActiveCfg = Release|Any CPU
{09A3C99B-7518-4FDF-8625-589EAB112B82}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{13F7E151-60CE-45DB-B550-584BB387A4D2} = {42A85FDD-682B-4A1A-866B-9A5F884AA6B2}
{77193289-0CC7-455F-97DE-F624704A3A5C} = {42A85FDD-682B-4A1A-866B-9A5F884AA6B2}
{387070D4-0B68-4C1B-BA6F-F5E4D36CFE76} = {42A85FDD-682B-4A1A-866B-9A5F884AA6B2}
{CEE5208B-411C-4DA8-956A-8ADDFC01F640} = {42A85FDD-682B-4A1A-866B-9A5F884AA6B2}
{AD4299B0-414C-41B3-B703-A231E0A1CC03} = {42A85FDD-682B-4A1A-866B-9A5F884AA6B2}
{47699601-28F4-4CDE-A50F-2AE9C283223E} = {42A85FDD-682B-4A1A-866B-9A5F884AA6B2}
{09A3C99B-7518-4FDF-8625-589EAB112B82} = {42A85FDD-682B-4A1A-866B-9A5F884AA6B2}
EndGlobalSection
EndGlobal
34 changes: 34 additions & 0 deletions Samples/MyNotes 2012/README.md
@@ -0,0 +1,34 @@
MY NOTES 2012 SAMPLE APPLICATION
================================

This sample application contains the basic components of a CQRS + Event Sourcing application.
It is built with ASP.NET MVC4, the Ncqrs Framework, and Entity Framework 5.0.

GETTING IT UP AND RUNNING
-------------------------

What do you need to run this sample app?

0. Visual Studio 2010 or 2012
1. Microsoft MVC4 (Included with VS 2012)
2. IIS Express
3. Microsoft SQL 2005 Express or higher

Follow these steps to get the website running.

0. Run BUILD.bat in the root folder (two up).
1. Run MyNotesReadModel.sql in the "sqlexpress" folder to create the read model database.
2. Open MyNotes 2012.sln with Visual Studio 2012 (Run as Administrator: http://stackoverflow.com/questions/6898597/visual-studio-unable-to-open-port-to-host-wcf-service).
3. If needed (this step is not needed when you run the default SQL express),
update the "MyNotes Read Model" connection string in
- ApplicationService\app.config
- Website\Web.config
4. Set Website and ApplicationService as default startup project.
5. Hit F5 and have fun!

CONTACT
-------

If you have any questions or feedback, contact me via:
- Twitter: <http://twitter.com/theBoringCoder>
- Mail: ncqrs-dev@googlegroups.com
@@ -0,0 +1,5 @@
<configuration>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
</configSections>
</configuration>
@@ -0,0 +1,5 @@
<configuration>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
</configSections>
</configuration>
Binary file not shown.
@@ -0,0 +1,22 @@
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>EntityFramework</id>
<version>5.0.0</version>
<title>EntityFramework</title>
<authors>Microsoft</authors>
<owners>Microsoft</owners>
<licenseUrl>http://go.microsoft.com/fwlink/?LinkId=253898&amp;clcid=0x409</licenseUrl>
<projectUrl>http://go.microsoft.com/fwlink/?LinkId=253891&amp;clcid=0x409</projectUrl>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<description>Entity Framework is Microsoft's recommended data access technology for new applications.</description>
<summary>Entity Framework is Microsoft's recommended data access technology for new applications.</summary>
<releaseNotes />
<copyright />
<language />
<frameworkAssemblies>
<frameworkAssembly assemblyName="System.Data.Entity" targetFramework="" />
<frameworkAssembly assemblyName="System.ComponentModel.DataAnnotations" targetFramework="" />
</frameworkAssemblies>
</metadata>
</package>
Binary file not shown.

0 comments on commit a121b20

Please sign in to comment.