Service for creating Stellar Accounts using Horizon
Token Factory will focus on using the existing network Stellar for creation of Accounts and managing the lifecycle of tokens via transactions.
Token Factory does have a dependency on MongoDB (https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/) for local testing and dev. For automated builds in Travis, the .travis.yml leverages the built in mongodb service. For Kubernetes deployments to IBM Cloud we deploy a mongodb helm chart.
*Start MongoDB*
./bin/mongod -dbpath deleteme/
To run this program, NPM install the various dependencies and start the server. The server requires a JWT (JSON Web Token) secret to start so just randomly generate one for testing.
npm install; npm run build; npm run start:development
npm install; make build-app
make stellar-quickstart # required to run tests
npm run test
The full list of npm scripts are described below.
| Command | Description |
|---|---|
npm test |
Runs jest tests |
npm start:production |
Starts production server |
npm run start:test |
Starts test server |
npm run start:development |
Starts development server |
npm run start:development-bg |
Starts development server in background for generating GraphQL Docs |
npm run stop:development-bg |
Stops development server for generating GraphQL Docs |
npm run start |
Starts development server |
npm run lint |
Runs lint code style check |
npm run build |
Perform clean and babel build |
npm run build-server |
Babel build |
npm run build:production |
Calls npm run build |
npm run clean |
Clean all old builds |
| API | Link |
|---|---|
| GraphQL Queries | https://token-factory.github.io/token-service/query.doc.html |
| GraphQL Mutations | https://token-factory.github.io/token-service/mutation.doc.html |