Skip to content

meritlabs/achievement-engine

Repository files navigation

Achievement Engine

The service is API layer for achievement management for users of client applications, like web wallets.

It provides:

  • API over HTTP protocol for achievement management
  • Encrypted key verification - Users authenticate with the Merit market using the same Public/Private key encryption that they use with the Merit Protocol.

Setting up the app

Achievement Engine is built in the wonderful Go language, and utilizes a baseline set of libraries to keep it very lightweight.

  1. To get set up, first install Golang: download
  2. Then install dependencies: make bootstrap
  3. Install MongoDB if you don't already have it.
  4. Optionally, install Air for hot code reloading: Air Repo
  5. Compile meritd and configure it like it is done for MWS.

Building the app

Achievement Engine and migrations binaries can be built with make:

make # builds both achievement engine and migrations binary
make build-achievement-engine # builds market binary
make build-achievement-engine-migrations # builds migrations binary

To remove binaries and dependencies use the clean command:

make clean

Running the app

Merit Market is easy to run.

  1. Allow RPC connections and start meritd
  2. Copy config.sample.yml to config.yml and update configuration with your dev environment
  3. Migrate the database: go run cmd/migrations/main.go
  4. Run the main server: go run cmd/api/main.go

Contributing

Please, check out our Contribution guide and Code of Conduct.

License

Code released under the MIT license.

Copyright (C) 2017 - 2020 The Merit Foundation.

About

The service is API layer for achievement management

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published