GithubHelp home page GithubHelp logo

wqhenry / we-text Goto Github PK

View Code? Open in Web Editor NEW

This project forked from daxnet/we-text

0.0 1.0 0.0 816 KB

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

License: MIT License

C# 92.48% Csound Document 1.99% CSS 0.12% ASP 0.02% HTML 1.15% JavaScript 4.25%

we-text's Introduction

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

we-text's People

Contributors

daxnet avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.