• Stars
    star
    257
  • Rank 157,960 (Top 4 %)
  • Language
    C#
  • License
    MIT License
  • Created over 8 years ago
  • Updated almost 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

WeText is a sample application that demonstrates the implementation of DDD/CQRS and microservice architectural patterns in C#.

WeText is a sample application that demonstrates the implementation of DDD/CQRS and microservice architectural patterns in C#.

Architecture

Prerequisites

Environment Setup

Follow the instructions below to setup your environment so that you can debug and run the WeText application.

  • Download the source code from GitHub

      git clone https://github.com/daxnet/we-text
    
  • Download and install Rabbit MQ with default preferences (Default port numbers, default server configuration)

  • Download and install Mongo DB with default preferences (Default port numbers, default server configuration)

  • Download and install MySQL community edition with default preferences (In case you wish to use MySQL as Table Data Gateway)

  • Initialize databases with the scripts (These scripts are only for use by querying)

    • Execute the database initialization script file mysql_query_databases.sql under the scripts folder
  • (Optional) Install MySQL client management tools

Run on Windows with Visual Studio 2015

Follow the instructions below to run WeText application from within Visual Studio 2015.

  • Open WeText.sln from Visual Studio 2015
  • Set WeText.Service project as startup project and run
  • Set WeText.Web project as startup project and run
  • Enjoy! ^_^

Note that the default configuration assumes that all the message queuing and database services are run on the same machine as the application (localhost). You can change the settings by editing the App.config file in WeText.Service application according to your environment setup. For debugging and demonstration purpose, running on the same local machine is recommended.

Build and Run on Linux

The steps below are for building we-text service under Ubuntu 14.04.4 LTS. We-text service can also be built on other Linux variants such as CentOS.

Install Mono

Building we-text service requires the Mono framework and xbuild tool chain. Please refer to http://www.mono-project.com/docs/compiling-mono/linux/ for more information about how to install Mono on your Linux machine.

Install MongoDB

In we-text, MongoDB is used as the backend database for storing domain events. Please refer to https://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/ for more information about how to install MongoDB on your linux machine.

Install RabbitMQ

For more information about how to install RabbitMQ on Linux systems, please refer to http://www.rabbitmq.com/install-debian.html

Install MySQL

For more information about how to install MySQL on Linux systems, please refer to https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-14-04

Compile Source Code

  1. Use the git command below to clone the repository:

     git clone https://github.com/daxnet/we-text
    
  2. Switch into we-text\scripts folder, execute mysql -u root -p to start MySQL client, after the client has connected to the server successfully, execute \. mysql_query_databases.sql command to initialize the query database

  3. Download the dependency package from http://daxnet.me/files/we_text_pkg_Ubuntu.tar and extract the package into src folder

  4. Change current directory to we-text/src, and use the following command to execute the build:

     xbuild /p:TargetFrameworkVersion=v4.6.1 /p:Configuration=ServerDebug WeText.sln
    

Screenshots

Application Home Page

My Texts

My Friends

More Repositories

1

Apworks

Apworks is a flexible, scalable, configurable and efficient .NET based application development framework that helps software developers to easily build enterprise applications by applying either Classic Layering or Command-Query Responsibility Segregation (CQRS) architectural patterns.
C#
372
star
2

ByteartRetail

一个演示.NET企业应用开发技术以及领域驱动设计的案例代码,业务背景是一个简单的在线零售系统。
C#
311
star
3

apworks-core

Apworks framework supporting .NET Core
C#
203
star
4

irony

A modified version of the Irony project (https://irony.codeplex.com) with .NET Core support
C#
152
star
5

edasample

A sample project demonstrating EDA in ASP.NET Core
C#
99
star
6

ByteartRetail_Apworks

集成了Apworks框架的Byteart Retail案例,所有核心组件都由Apworks框架提供。是展示Apworks框架的一个很好的案例。
JavaScript
49
star
7

hal

The C#/.NET Core implementation of Hypertext Application Language (HAL) specification.
C#
45
star
8

CloudNotes

A personal note system running on the cloud.
C#
43
star
9

raspkate

A simple and small web server that can run on either Windows or Linux.
C#
33
star
10

apworks-examples

Example projects demonstrating Apworks framework.
C#
30
star
11

daxnet-blog

A blog web site for daxnet.
C#
27
star
12

tetris-sharp

A Tetris game made with CSharp and MonoGame
C#
26
star
13

wizard-framework

A Windows Forms based framework for building wizards.
C#
21
star
14

abacuza

Easing your on-premise Data Processing
JavaScript
21
star
15

logo-sharp

Logo programming language for managed world.
C#
17
star
16

mlnet-trainer

一个基于ML.NET监督式(Supervised)机器学习进行学生成绩预测的案例程序
C#
17
star
17

identity-demo

A demonstration app showing Angular SPA authentication and authorization based on Ocelot and IdentityServer4.
C#
14
star
18

UnifiedQueries

Unified Queries defined a Domain-Specific Language (DSL) to describe a common schema of a query specification.
C#
13
star
19

ocelot-sample

Examples using Ocelot API Gateway in ASP.NET Core applications.
C#
13
star
20

Starwar

A star war game developed with MonoGame
C#
12
star
21

irony-explorer

A project contains both the sample grammars as well as the Windows Forms based grammar explorer for Irony.
C#
9
star
22

CalculateIt2

A calculation generation engine for students.
C#
9
star
23

forms-ui

A Windows Forms library for solving real life problems.
C#
8
star
24

Json2DataSet

Converts the json string to the ADO.NET DataSet object
C#
8
star
25

tasklist

Task list example building for demonstration.
TypeScript
7
star
26

easymemo

一个展示企业级系统设计和架构的简单案例。
C#
5
star
27

name-list

一个演示容器化单页面应用访问后端RESTful API的案例
TypeScript
4
star
28

adaptive-console

A framework of building complex console applications with C#
C#
4
star
29

form-file-upload

Demonstrating file upload in ASP.NET MVC on .NET 5 and the using of Rook-Ceph on Kubernetes.
C#
2
star
30

byteart-retail-msa

Microservices architecture implementation sample of Byteart Retail
C#
2
star
31

guluwin

C#
1
star
32

live-writer-plugins

Some personal used plugins for Open Live Writer
C#
1
star
33

ovow

2D Gaming Engine for MonoGame
C#
1
star
34

OcelotDemo

C#
1
star
35

mdocwriter

Markdown Document Writer
C#
1
star
36

booking

A sample meeting room booking system.
C#
1
star
37

simple-store

A simple demonstration for utilizing value store via a backend service.
1
star
38

NesEmulator

Nintendo Entertainment System (NES) emulator written in C#
C#
1
star
39

link-game

A link game written in C# - 连连看小游戏
C#
1
star
40

tetris

Tetris game
1
star
41

pkiwhosnext

The internal lottery application of PerkinElmer Informatics R&D.
TypeScript
1
star
42

sphinx-demo

A demonstration project of sphinx and readthedocs.org.
1
star