Corporate web site hosting content, services and markets for customers, partners and prospects
Getting the app running on your local machine takes only a few steps:
- clone the project - `git clone https://github.com/strategicmarket/webmachine.git
- install its dependencies -
npm install - Update configuration parameters
- start the app - npm run dev
This will start create the build and start the nodejs server
The code base is isomorphic, with key configuration data shared between client and server functions
- First, follow the instructions in the developer docs for forking and clone the application
- Once, the application is cloned, copy the configExample, and create a folder named config
- Open the config folder. You'll note a number of config files are available.
- Open config.json and update key configuration parameters
- Insert the github json token for the strategicmarket test repos in config.json githubrepo object. Contact admin for token
- update gmail for account data if using the transport notifier, as well as the block of code in zserver/server
- be sure that the /machines db on your mongodb on local host is deleted before running your project. Test data will be automatically initialized
- The platform runs in test mode when running from localhost (isLive=false)
- There are two configuration objects in platform.json. One points to the db of all authenticated clients for production and the other points to the db of all test clients for testing purposes. One of the objects is selected based on the boolean value of the process.env.isLive property
- Each of the client dbs hold the array of client objects with their respective db configurations. Each database for the clients holds collections related to agents, workitems, and message interactions
- The test databases are automatically refreshed when the servers are started in test mode. In order to restore the workitem.js test data set, however, execute the script 'npm run back-wis' if necessary. This copies a master set of test data for workitems from an mlab db
Strategic Machines labs and affiliates
connecting businesses with the conversational economy