Coder Social home page Coder Social logo

salesfarce's Introduction

Salesfarce

... is a fictitious, rudimentary and simplistic sales prospecting system. We are building it during a series of Domain Driven Design, CQRS and Eventsourcing exploration sessions at Vancouver's "DDD/CQRS/ES Practitioners' Meetup".

https://www.meetup.com/DDD-CQRS-ES/events/233590206/

https://www.meetup.com/DDD-CQRS-ES/events/233590334/

https://www.meetup.com/DDD-CQRS-ES/events/233590625/

Getting Started

Requirements

  • NodeJS v4.5+
  • GoES to store events
    • install using npm install goes-install (Only supported for Windows and Linux for now)

Requirements to compile native NodeJS modules (i.e. zmq).

Windows

  • windows-build-tools npm package installed
    • npm install --global windows-build-tools (IMPORTANT: must be run as Administrator)

This step can be skipped if you can already compile native nodejs modules on your computer.

Linux

  • build-essential distribution package installed
    • sudo apt-get install build-essential

Mac OSX

TODO

Install modules

npm install

Start app

1) Start GoES

Windows

start .deps\goes\bin\goes.exe --db=c:\temp\salesfarce-events

Linux

.deps/goes/bin/goes --db=/tmp/salesfarce-events &

2) Start the API

npm start

HTTP API is running at http://localhost:8080/

Note: Linux user must adjust the goesStoragePath in config/local.json to /tmp/salesfarce-events before starting the app

Run tests

npm test

Events (as of 9/22/2016):

Bounded Context: Sales prospecting

SalesLeadReceived:
    receivedAtDate: 09/22/2016
    salesLeadID: 1234
    email: [email protected]
    firstname: Joe
    lastname: Miller
    company: Invalid Yaml, Inc.
    phone: 222-222-3333
    salesrep: [email protected] 

SalesLeadContacted:
    salesLeadID: 1234
    contactDate: 10/21/2016
    salesrep: [email protected]
    notes: 

SalesLeadResponded:
    salesLeadID: 1234
    respondedAtDate: 10/26/2016
    interested: yes
    notes:

Bounded Context: Order fulfillment

ProductSold:
    customerId: 1234
    soldAtDate: 11/23/2016
    salesrep: [email protected]
    productId: 899
    quantity: 120

salesfarce's People

Contributors

nicdex avatar robertreppel avatar

Stargazers

 avatar  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.