Next-Generation Messaging Service with a focus on Privacy
After cloning, run npm install and npm run build to build the distributable:
git clone https://github.com/alexhrao/textric.git
cd textric
npm install
npm run build
# dist will now be a folderTesting is handled via mocha and chai. To test, simply build the project and run the test script:
npm run build && npm testThe Textric Server is a cross-platform Node.JS program that uses WebSockets to communicate with different devices. After installing, simply run npm start:
# From installation...
git clone https://github.com/alexhrao/textric.git
cd textric
npm install
npm run build
# Start the server
npm startThe server takes a variety of options. To see them, run npm start -- --help.
The --server-port option specifies the port to run the HTTP API from; if not given, the environment variable $SERVER_PORT is used. If this variable is not present, port 3000 is used.
The --socket-port option specifies the port to run the WebSocket server from; if not given, the value of the environment variable $SOCKET_PORT is used. If this variable isn't present, port 8080 is used.
Credentials for MongoDB can also be given:
--mongo-useror$MONGO_USERfor the MongoDB username--mongo-passor$MONGO_PASSfor the MongoDB password--mongo-urlor$MONGO_URLfor the MongoDB URL (i.e.,example.comor127.0.0.1)